Support CANCEL
event on invoke for promises: onCancel
#1300
Unanswered
knownasilya
asked this question in
General
Replies: 2 comments
-
An actor (service) can only be started or stopped by the parent service. It can also "stop itself" once it reaches some completion point. Cancelation can be seen as an event sent to the actor, but the details are specific to the implementation of that actor (there is no standard "cancellation" concept). Is this about supporting |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes and no, http://ember-concurrency.com/docs/tutorial/refactor But the same would be true of an abstraction on top of abort controller. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Basically have a wrapper for generator services that handle cancel, but with invoke there is no
onCancel
so cancelations register asonError
, would love for that to be a thing.Here's the wrapper: https://github.com/NullVoxPopuli/emberclear/blob/master/client/web/emberclear/app/utils/ember-concurrency.ts#L34
Beta Was this translation helpful? Give feedback.
All reactions