Is there a way to make the javascript await
keyword work outside async
functions? I would like to be able to freeze the entire call-stack (instead of just the rest of the async
function), to be resumed once the particular promise returns a value. Sadly a powerful await
like that is currently gimped or not implemented yet. I tried to make nodent.js work, but due to my custom loader and dynamic functions it's unfortunately impractical.