-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make fromPromise support promise cancellation? #2652
Comments
I think this is a good idea to consider. |
How is this not supported? |
89 tasks
I have since changed my opinion on this. The standard way to cancel Promises in JS is |
Closing as core team trying to follow spec complaint abortsignal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Many non-standard promise implementations support a
promise.cancel()
method that cancels the promise:$timeout
hascancel()
)The only way to currently convert these to Observables is to write by hand:
Would there be any downside to have
PromiseObservable
check if the promise has acancel
method, and if present, invoke it on unsubscription?The text was updated successfully, but these errors were encountered: