News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by jnbiche on Tuesday September 24, 2019 @11:17PM (#21067271)
You write this boilerplate to avoid one extra non-cached HTTP call on a (browser?) client? Am I understanding correctly?
Re:V8 adds support for top-level await by londons_explore on Wednesday September 25, 2019 @03:37AM (#21068631)
One extra call could be a multi-megabyte video chunk, or the code flow might mean this case always occurs, potentially hundreds of times before the promise resolves.
Re:V8 adds support for top-level await by matharmin on Wednesday September 25, 2019 @02:56AM (#21068395)
It's really not a lot of boilerplate - once you have the small utility function, it can be one additional line of code.