-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
See #1
Progress handlers should be allowed to explicitly stop progress propagation. The trend in #1 seems to be toward allowing handlers to throw a duck-typed "stop propagation" error.
What should this error look like? One option is to follow builtin Error convention and have it be an Error whose .name == "<some specific name>"
, since we can't rely on instanceof
across implementations.
Two related questions:
- Would it be better to return such an error rather than throw it?
- Would it be ok to allow returning such an error in addition to throwing it?
My instinct is that we should only support throwing the stop propagation error.
Metadata
Metadata
Assignees
Labels
No labels