new streams

This commit is contained in:
Jan Prochazka
2020-06-10 21:35:25 +02:00
parent 26120969de
commit 1695fb2fd8
7 changed files with 77 additions and 27 deletions

View File

@@ -7,8 +7,10 @@ async function fakeObjectReader({ delay = 0 } = {}) {
function doWrite() {
pass.write({ id: 1, country: 'Czechia' });
pass.write({ id: 2, country: 'Austria' });
pass.write({ id: 3, country: 'Germany' });
pass.write({ id: 4, country: 'Romania' });
pass.write({ country: 'Germany', id: 3 });
pass.write({ country: 'Romania', id: 4 });
pass.write({ country: 'Great Britain', id: 5 });
pass.write({ country: 'Bosna, Hecegovina', id: 6 });
pass.end();
}