Skip to content

Comment on "Ruby developers need to stop using EventMachine. It's the wrong direction."parent

Comments

That would require a goroutine for each socket to hot potato from the socket to a channel, right?

Yes. This allows you to have the "when any of these socket's state changes" semantics in your controller/dispatcher function. I would like it if they had such an interface in stdlib...

If you really do just need to take data from one Reader and send it to a Writer, you can make a new Pipe.

AboutSource Built by g1lg1l

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