Method: Async::IO::UNIXEndpoint#bound?

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

#bound?Boolean

Returns:

  • (Boolean)


42
43
44
45
46
47
48
# File 'lib/async/io/unix_endpoint.rb', line 42

def bound?
  self.connect do
    return true
  end
rescue Errno::ECONNREFUSED
  return false
end