Method: Async::IO::Socket#connect_nonblock

Defined in:
lib/async/io/socket.rb

#connect_nonblockObject

Raises:

  • Errno::EAGAIN the connection failed due to the remote end being overloaded.


58
59
60
61
62
63
64
# File 'lib/async/io/socket.rb', line 58

def connect(*args)
	begin
		async_send(:connect_nonblock, *args)
	rescue Errno::EISCONN
		# We are now connected.
	end
end