Class: Wire::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/wire.rb

Instance Method Summary collapse

Instance Method Details

#complete(result) ⇒ Object



93
94
95
# File 'lib/wire.rb', line 93

def complete (result)
  @result = result
end

#resultObject



85
86
87
88
89
90
91
# File 'lib/wire.rb', line 85

def result
  while @result == nil
    sleep(0.1)
  end

  @result
end

#timeoutObject

Raises:

  • (Timeout::Error)


97
98
99
# File 'lib/wire.rb', line 97

def timeout
  raise Timeout::Error.new
end