— Would be nice if spawn returned some sort of object imo
— Yeah I've been thinking about what it should return
—
const proc = spawn f();
while (!proc.done);
return proc.value;
Could be the same as:
return f();
— A promise was my first idea
— The dispatcher can literally route/throw an error any way I want it to
— GeneratorFunction.prototype.throw
is baller
— Promises are probably a bit too complex
— Promises force you to enter the event queue and stuff
— Well that or just a thenable