Allows libraries to handle various caller provided asynchronous functions uniformly. Maps promises, observables, child processes and streams, and callbacks to callback style.
In node 10, I believe they added stream.finished as the core implementation of the end-of-stream module. We should look into using that instead of relying on another dependency.
Reviewed this and node core explicitly removed child_process handling from their implementation. We'd have to re-implement all of the handling logic just to add the 'exit' event, so I don't think it's worth it.
In node 10, I believe they added
stream.finished
as the core implementation of theend-of-stream
module. We should look into using that instead of relying on another dependency.