3 ms·
The async/await stuff in JavaScript, at least, is supported by the “generators” feature, which does let you effectively “pause” execution of a function, retaini
by dartos 3y ago
The async/await stuff in JavaScript, at least, is supported by the “generators” feature, which does let you effectively “pause” execution of a function, retaining its state. You can then yield to that state to continue executing
- vanviegen 3y agoSure, but would you still be able to resume that function 2 weeks later, after 5 process restarts due to code deploys and on a different server?
- Izkata 3y agoCRIU can apparently do that with whole processes: https://criu.org/Main_Page https://criu.org/Main_Page Found a link to it from telefork: https://thume.ca/2020/04/18/telefork-forking-a-process-onto-a-different-computer/ https://thume.ca/2020/04/18/telefork-forking-a-process-onto-...