Hacker News new | ask | show | jobs
by lukaslalinsky 236 days ago
It's all the same concept, it's just a matter who/what is managing the state while you are waiting for I/O. When you yield, it's the compiler/runtime making sure the context is saved. When you return, it's your responsibility.