Skip to content

Commit

Permalink
fix: accepts iterable also (#24)
Browse files Browse the repository at this point in the history
Passed directly to `it-batch` which accepts `Iterable` also: https://github.com/achingbrain/it/blob/master/packages/it-batch/index.js#L8
  • Loading branch information
Alan Shaw authored Oct 3, 2022
1 parent c74ff5f commit cfc852b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/it-parallel-batch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const batch = require('it-batch')
* in the same order as the input
*
* @template T
* @param {AsyncIterable<() => Promise<T>>} source
* @param {AsyncIterable<() => Promise<T>>|Iterable<() => Promise<T>>} source
* @param {number} [size=1]
* @returns {AsyncIterable<T>}
*/
Expand Down

0 comments on commit cfc852b

Please sign in to comment.