Async Class
Dimitrian Nine
dimtimeforever at gmail.com
Fri Feb 16 04:12:10 UTC 2018
I cant find: was or not that proposal...
But can we have Async Class with async constructor and async super?
//AsyncClass
async_class AsyncClass { // keyword async_class(example)
constructor() {
await something(); //now constructor async too
}}
//AsyncObj in some async method
let NewAsyncObj = await AsyncClass(); // create async obj
//Extends
async_class ExtAsyncClass extends AsyncClass{
constructor() {
await super(); // now we can await super too
await something();
}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180216/f5acd6f3/attachment-0001.html>
More information about the es-discuss
mailing list