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

Thoughts on adding a AsyncRx.subscribeAsync function? #2

Open
absolutejam opened this issue Jun 21, 2021 · 1 comment
Open

Thoughts on adding a AsyncRx.subscribeAsync function? #2

absolutejam opened this issue Jun 21, 2021 · 1 comment

Comments

@absolutejam
Copy link

Howdy!

Just curious what your thoughts are on adding an AsyncRx.subscribeAsync function?

I've been adding via. an extension so that I can chain the transforms with the end subscription like so:

myObservable
|> AsyncRx.map (fun x -> x + 1)
|> AsyncRx.filter (fun x -> x < 6)
|> AsyncRx.subscribeAsync printObserver
|> Async.RunSynchronously

Do you think there's enough merit in making this a part of the core?

@dbrattli
Copy link
Owner

This looks great. Please submit a PR! (and sorry for being so slow to comment)

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