top | item 28478713 (no title) tnzm | 4 years ago Class static blocks are weird. Give me async constructors already! discuss order hn newest jakelazaroff|4 years ago Can you not just define an async static function that returns an instance? tnzm|4 years ago I can, but that's ugly - it violates standard semantics and generally introduces a new thing to know about. bricss|4 years ago You can simply return promise from constructor \m/ k4rli|4 years ago Why would you need that? tnzm|4 years ago Why not?
jakelazaroff|4 years ago Can you not just define an async static function that returns an instance? tnzm|4 years ago I can, but that's ugly - it violates standard semantics and generally introduces a new thing to know about.
tnzm|4 years ago I can, but that's ugly - it violates standard semantics and generally introduces a new thing to know about.
jakelazaroff|4 years ago
tnzm|4 years ago
bricss|4 years ago
k4rli|4 years ago
tnzm|4 years ago