Fishrock123 / bob

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

clean up the source after stopping #58

Open dominictarr opened 4 years ago

dominictarr commented 4 years ago

this module implements a stop method: https://github.com/Fishrock123/bob/blob/master/reference-extension-stop.js

but it doesn't notify the source in anyway. If the source is using a heavy resource, (eg, a file descriptor) the source needs to know the sink has stopped so that it can close the resource.

Fishrock123 commented 4 years ago

Right, that file is a reference. The source would have to implement it itself.