Axel Rauschmayer schrieb:
OK. I see the use case for `throw()` (e.g. to convert a promise rejection into an exception when using generators for async). The only use case for `return()` is closing an iterator, then(?)
If you are using generators for async, then you'd call `return()` when your result promise is cancelled.
Bergi _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss