Dimtime
Dimtime
@TheNavigateur >  And what? We have async func now or you forget how work with them too? Async class - just async function constructor Yes you can do something...
@TheNavigateur example too simple) Async Class can help work with async objects (files for example) Right wrapper can be like: ```mjs class PromiseClass { static async new(test = 'test'){ this.promise...
> Even the most basic subclass of the class shown in the [example](https://github.com/tc39-transfer/proposal-async-init/issues/2#issue-564100969) can be used in exactly the same way as shown @TheNavigateur Can you show me your code...
> ```js > let my_image_data = await new NewEditorImage(parm).imgPromise; > ``` @TheNavigateur Ok i see your way, but seems it was again easy example. Next step i want to add...
> Yes really simple @TheNavigateur ok i see ```jsx class Async{ constructor(parm){ this.obj = this.getAsyncObj(parm); } } class ExtAsync extends Async { constructor(parm){ this.obj = this.getAsyncObj(parm); } async getAsyncObj(parm){await super.getAsyncObj(parm);}...
> I'm not sure what you mean, but anyway it depends on a person's meaning of the word "standard" @TheNavigateur 1) standard better for understanding: if you know pattern then...
> However, if async classes become a feature, then wherever we see `new X()` at a JavaScript usage site, we always have to wonder whether it's really an `X` or...