Show HN: ConclureJS: A tiny generator runner(github.com)
github.com
Show HN: ConclureJS: A tiny generator runner
https://github.com/dmaevsky/conclure
2 comments
A few years age I made a similar coroutine system for my tiny JavaScript game framework Bubble: https://github.com/jbluepolarbear/Bumble
BumbleCoroutines - it makes writing games fun.
Here’s a game I made that uses Bumble and it’s coroutine system: https://github.com/jbluepolarbear/Bumble-Asteroids
BumbleCoroutines - it makes writing games fun.
Here’s a game I made that uses Bumble and it’s coroutine system: https://github.com/jbluepolarbear/Bumble-Asteroids
How does Typescript deal with replacing `await XXX` with `yield YYY`? Can typescript infer the type of the yield expression?
How cancellable are these flows, really? My issue with most libraries that promise (no pun intended) cancellation in Node is that at the bottom of the call stack is someone else’s callback code where cancellation is impossible - cancellation is always “cooperative”. So, other than avoiding a tick - couldn’t you get the same sort of features by wrapping all your `await` calls with a special `await ctx.checkpoint(someAsyncOperation())` that throws CancellationError?