Skip to content

Commit cfc852b

Browse files
author
Alan Shaw
authored
fix: accepts iterable also (#24)
Passed directly to `it-batch` which accepts `Iterable` also: https://github.com/achingbrain/it/blob/master/packages/it-batch/index.js#L8
1 parent c74ff5f commit cfc852b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/it-parallel-batch/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const batch = require('it-batch')
1717
* in the same order as the input
1818
*
1919
* @template T
20-
* @param {AsyncIterable<() => Promise<T>>} source
20+
* @param {AsyncIterable<() => Promise<T>>|Iterable<() => Promise<T>>} source
2121
* @param {number} [size=1]
2222
* @returns {AsyncIterable<T>}
2323
*/

0 commit comments

Comments
 (0)