Interesting idea, though I feel that this is too similar to async functions. What would be useful would some standard way of "awaiting" functions that require callbacks. Sort of like bluebird's Promise.fromCallback. Maybe ```js await.fromCallback fn() ``` Which can only be used by a function call and the postpends the parameters with a suitable callback function Sebastian Malton
One new proposal for EcmaScript.
|
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss