async
async copied to clipboard
Suspend and wake up event loops.
This breaks out of the event loop stack, but it is needed if we want to handle long running background tasks.
We would just lift the event loop out of the stack, and return it as a first class object, maybe?
The event loop needs a finalizer, so when this object is GC-d, everything is freed up.