-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipeTo should return a cancelable promise #446
Comments
Sure, this has always been the plan. One day, when cancelable promises are ready, they'd be retrofitted here. You'd be able to cancel the piping process in this way. |
Figured you'd have already thought about this. Ta! |
domenic's cancelable promise spec appears to have been withdrawn :( Should this still be blocked in the hopes that one day standardized cancelable Promises are a thing? Or should this be revisited in a non-cancelable-Promise way? |
I'd like to confirm if I understand the example by Jake in the OP correctly. The When
IIRC, here cancelling an ongoing |
Off topic: I didn't realise the merge() function was so non-trivial. It ought to be placed in some easily-discoverable location. Maybe in the Examples section of the standard? |
Closes #446. Co-authored-by: Adam Rice <ricea@chromium.org>
If I wanted to create:
Being able to pipe each stream to an identity stream would make this easy and move a lot of the work out of JS, but the missing bit is being able to react to cancellation. If
stream
is cancelled while pipingstream1
, I want to know about that so I can cancelstream2
andstream3
.The text was updated successfully, but these errors were encountered: