3 ms·
JavaScript generators are unmined gold! We've done a lot of usage of JavaScript generators as delimited continuations; using them to implement the classic shift
by cowboyd 2y ago
JavaScript generators are unmined gold! We've done a lot of usage of JavaScript generators as delimited continuations; using them to implement the classic shift/reset operations in JavaScript. https://github.com/thefrontside/continuation https://github.com/thefrontside/continuation
Built on those delimited continuations is structured concurrency for JavaScript (https://frontside.com/effection https://frontside.com/effection)