-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
toAsyncIterable
instead of toIterable
fixes #7
- Loading branch information
1 parent
3dc04eb
commit a741863
Showing
6 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import toIterable from './toIterable' ; | ||
import toAsyncIterable from './toAsyncIterable' ; | ||
import asyncIterableToArray from './asyncIterableToArray' ; | ||
|
||
/** | ||
* Converts a stream to an array. | ||
* @kind function | ||
* @param {Stream} stream the stream to read from | ||
*/ | ||
export default async stream => asyncIterableToArray( toIterable( stream ) ) ; | ||
export default async stream => asyncIterableToArray( toAsyncIterable( stream ) ) ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import toIterable from './toIterable' ; | ||
import toAsyncIterable from './toAsyncIterable' ; | ||
|
||
/** | ||
* Converts a stream to an iterator. | ||
* @kind function | ||
* @param {Stream} stream the stream to read from | ||
*/ | ||
export default stream => toIterable( stream )[Symbol.asyncIterator]( ) ; | ||
export default stream => toAsyncIterable( stream )[Symbol.asyncIterator]( ) ; |