Adding some partial documentation. Fixing batching timeout

This commit is contained in:
Lewis Diamond
2020-07-31 23:29:28 -04:00
parent caaabf4427
commit 4aac05c9c0
3 changed files with 81 additions and 20 deletions

View File

@@ -39,7 +39,7 @@ test.cb("batch() yields a batch after the timeout", t => {
const expectedElements = [["a", "b"], ["c"], ["d"]];
let i = 0;
source
.pipe(batch(3))
.pipe(batch(3, 500))
.on("data", (element: string[]) => {
t.deepEqual(element, expectedElements[i]);
i++;