Async Class

Dimitrian Nine dimtimeforever at
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?

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

async_class ExtAsyncClass extends AsyncClass{
constructor() {
await super(); // now we can await super too
await something();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list