Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to refer to observable type anyway? #533

Closed
RobinQu opened this issue Feb 21, 2024 · 2 comments
Closed

How to refer to observable type anyway? #533

RobinQu opened this issue Feb 21, 2024 · 2 comments

Comments

@RobinQu
Copy link

RobinQu commented Feb 21, 2024

It's a common practice to return an observable<T> to for a method to represent values of T in async fashion.

class Person {
   observable<std::string> Talk();
} 

While rpp does provide an observable class, but it has too many class template arguments which I can find very few explainations in docs. Before reading your whole project code, would you please enlighten me about a simple way to define actual class type other than auto.

@RobinQu RobinQu changed the title How to refer to observale type anyway? How to refer to observable type anyway? Feb 21, 2024
@victimsnino
Copy link
Owner

victimsnino commented Feb 21, 2024

Hello @RobinQu.

Yeah, you are right, currently it is not clear from documentation. Made #534 to explicitly explain it in document. hope it is clear enough. Feel free to ask any other questions =)

Direct link to paragraph:
https://victimsnino.github.io/ReactivePlusPlus/v2/docs/html/md_docs_2readme.html#autotoc_md13

@RobinQu
Copy link
Author

RobinQu commented Feb 23, 2024

Thanks for you response. I will have a try with dynamic_* classes.

@RobinQu RobinQu closed this as completed Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants