Skip to content

Comment on Async/await support in Firefoxparent

Comments

One can now block execution to return a value, but no longer know if the innards of a function is blocking, which could mean that your function execution is blocked by an async execution.

Huh? I think you're misunderstanding how these functions work. You can't call an async function from a normal function and have it block the normal function. You specifically have to await the Promise returned by any async function.

You specifically have to await the Promise returned by any async function

I just wanted to add (may help others): And you can only do that from within an async context (currently just the body of an async function).

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.