Returns an AsyncOperationFunction that yields array of entries of the source Iterable with the given length.
The type of the elements in the source Iterable.
The length of the array to yield.
An AsyncOperationFunction that yields array of entries of the source Iterable with the given length.
const result = bufferAsync<number>([1, 2, 3], 2);console.log(result); // [[1, 2], [3]] Copy
const result = bufferAsync<number>([1, 2, 3], 2);console.log(result); // [[1, 2], [3]]
Returns an AsyncOperationFunction that yields array of entries of the source Iterable with the given length.