Method: Async::IO::SocketEndpoint#bind
- Defined in:
- lib/async/io/socket_endpoint.rb
#bind(&block) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/async/io/socket_endpoint.rb', line 42 def bind(&block) if block_given? begin yield @socket ensure @socket.reactor = nil end else return @socket end end |