Hacker News new | ask | show | jobs
by omnicognate 1099 days ago
Which is exactly what happens when you use asynchronous callbacks except that you have to do the storing of state explicitly. Stackless coroutines even typically compile to (or are defined as equivalent to) callback based code.