> > For async functions, it would mean that any await expression could > potentially throw a CancelError
Cancellation does not necessarily need to use `throw`, `return` is often more apt. I find. I would also recommend splitting the idea of cancellation into: abort semantics, and ignorance semantics. Trying to use one term for both separately is getting confusing. My usage of cancellation is often being able to undo side-effects which can happily be done using `finally`.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss