Implement 'Canceler' for managing side-band promise cancelation.
This is necessary when someone other than the promise owner might need to destroy the state a promise is operating on. It comes up when implementing pumpTo() for userland pipes -- cancelling the pump needs to cancel any writes currently passing through the pipe.
Showing
Please
register
or
sign in
to comment