Skip to content

Comment on Async/await support in Firefoxparent

Comments

Yeah actually the Lua implementation I mentioned uses a condition variable (not sure about the mutex).

The unbuffered channel would be a good reason to use that scheme. I was thinking of using pipes so Go's select reduces to the select() system call. But I think you can just do both -- it's cheap. Write to a pipe and and notify a condition variable. I'll experiment with it.

AboutSource Built by g1lg1l

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