Adding collected

This commit is contained in:
Lewis Diamond
2020-03-02 10:07:20 -05:00
parent 2841f4e182
commit ed73bd2887
10 changed files with 75 additions and 50 deletions

View File

@@ -12,7 +12,9 @@ export function batch(
clearTimeout(timer);
}
timer = null;
self.push(buffer);
if (buffer.length > 0) {
self.push(buffer);
}
buffer = [];
};
return new Transform({