Message from JavaScript discussions

December 2018

— Yes, but how do we pass a callback / wait for it


if (this.activeBlock.stack.length === 0) {
debugLog("Pruning empty ControlBlock");
this.blocks.splice(this.blockIndex, 1);

— Heres the code that detects when a coroutine is dead

— Can hook into it

— Excellent

— I gotta go eat dinner

— Thanks for the help figuring it out :)

— When I was running code in the REPL I was annoyed by how an error in one coroutine would nuke all of them, lol

Message permanent page

— Would be possible to do a lightweight version of hertz with async / await


const f = async n =>
await (n + await (n * n));

— Obviously no kernel stuff

— Wanna see some truly parallelism in the browser?🤤