Make map
respect backpressure.
This commit is contained in:
parent
3e92604d18
commit
bf7258de05
1 changed files with 3 additions and 3 deletions
|
@ -200,9 +200,9 @@ const Channel = function(length = 0) {
|
||||||
const output = Channel(length);
|
const output = Channel(length);
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await readOnly.forEach(value => {
|
await readOnly.forEach(value =>
|
||||||
output.push(callbackfn.call(thisArg, value));
|
output.push(callbackfn.call(thisArg, value))
|
||||||
});
|
);
|
||||||
|
|
||||||
output.close();
|
output.close();
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue