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

Implement async generator combination functions similar to the ones from rx.js #4

Closed
8 tasks done
brainkim opened this issue May 21, 2019 · 3 comments
Closed
8 tasks done
Assignees

Comments

@brainkim
Copy link
Member

brainkim commented May 21, 2019

  • implement Channel.race
  • implement Channel.merge
  • implement Channel.zip
  • implement Channel.latest
  • add variadic type parameters for these methods
  • write tests
  • test throwing behavior
  • add documentation

Channel.race calls Promise.race on each iteration, Channel.merge merges all async iterators into a single iterator, Channel.zip calls Promise.all on each iteration, and Channel.latest returns an iterator which iterates with the latest values when any individual iterator updates.

@brainkim brainkim self-assigned this May 21, 2019
@brainkim
Copy link
Member Author

brainkim commented May 23, 2019

Implemented in commits:
c6acfbb
3e741f0
10cbbc9

TODO: fix the type parameters for these methods.
0e4b770

@brainkim
Copy link
Member Author

brainkim commented May 23, 2019

TODO: Rename Channel.all to Channel.zip because all implies that all iterators are run to completion when in actuality the iterator returns when any child iterators return.
d8bb3a5

@brainkim
Copy link
Member Author

brainkim commented Jun 9, 2019

Released in 1.0

@brainkim brainkim closed this as completed Jun 9, 2019
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

1 participant