Class: Wire::Message
- Inherits:
-
Object
- Object
- Wire::Message
- 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 |
#result ⇒ Object
85 86 87 88 89 90 91 |
# File 'lib/wire.rb', line 85 def result while @result == nil sleep(0.1) end @result end |
#timeout ⇒ Object
97 98 99 |
# File 'lib/wire.rb', line 97 def timeout raise Timeout::Error.new end |