therealadam/celluloid-io — comment on commit 1e8b74798ef22aeb6fcf95c4523bfde4437277f3
File:  line 0
By tarcieri:

You're touching upon the fact there's no client API in Celluloid::IO yet ;)

It's a bit difficult because connect_nonblock is a method of Socket, not TCPSocket. Internally Celluloid::IO::TCPSockets will need to be Ruby Sockets.

It's doable, and I made sure to spec out the behavior of Socket.connect_nonblock in the latest release of nio4r, which I just released today, although I'm running into a JRuby bug.

A real client API is coming soon! ;)