This issue is to provide a forum for community discussion and feedback related to the proposal to make async functions start their execution synchronously.
Currently invoking an async function delays running the function body until a later microtask. This has been a source of bugs when converting synchronous functions to being async. This change would make the async function run until the first asynchronous operation (await, await-for) before returning the future.
This does not affect async* functions.
This entry will be updated when a proposal is available.
cc @munificent @eernstg @floitschG @lrhn
This issue is to provide a forum for community discussion and feedback related to the proposal to make
asyncfunctions start their execution synchronously.Currently invoking an
asyncfunction delays running the function body until a later microtask. This has been a source of bugs when converting synchronous functions to being async. This change would make the async function run until the first asynchronous operation (await, await-for) before returning the future.This does not affect
async*functions.This entry will be updated when a proposal is available.
cc @munificent @eernstg @floitschG @lrhn