Skip to content

Comment on An open question (rant) about Node.jsparent

Comments

Don't the coroutines still have to explicitly yield? In other words, not quite written as if the code was blocking?

No, it is all implicit, ie the library function is doing the yield for you, it is invisible in the code you write. Obviously if you are writing new blocking primitives you need to deal with it, but you rarely are as most of these are the socket, timer calls provided by core.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.