Fishrock123 / bob

🚰 binary data "streams+" via data producers, data consumers, and pull flow.
MIT License
79 stars 8 forks source link

Construct flow #53

Open Fishrock123 opened 5 years ago

Fishrock123 commented 5 years ago

Some kind of construct flow would be very useful for a couple of significant reasons:

Arguments for doing it all inline could be getting pretty long (and very variable), not even counting the first point:

pull(status_type, error, buffer, size, offset)

Maybe?

Idk, maybe separating this all out into multiple flows would be better, similar to Streams3 but just sans the dreaded EventEmitter.

Very related to https://github.com/nodejs/node/issues/29314

ronag commented 5 years ago

I'll chime in a link to related PR in Node https://github.com/nodejs/node/pull/29656.