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

feat(async/mux): takes AsyncIterable as source iterator #923

Merged

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented May 17, 2021

Currently MuxAsyncIterator takes AsyncIterableIterator<T> as source of iterator, but AsyncIterable<T> is a more general form of async iterable data. This PR changes the signature of add method of MuxAsyncIterator from add(iterator: AsyncIterableIterator<T>) to add(iterable: AsyncIterable<T>) and makes it work with AsyncIterables.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit 81f0675 into denoland:main May 18, 2021
@kt3k kt3k deleted the feat/accept-async-iterable-as-source-iterable branch May 18, 2021 13:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants