Class: SignalWait
- Inherits:
-
Object
- Object
- SignalWait
- Defined in:
- lib/ruby/riddl/client.rb
Overview
}}}
Instance Method Summary collapse
- #continue ⇒ Object
-
#initialize ⇒ SignalWait
constructor
{{{.
- #wait(num = 1) ⇒ Object
Constructor Details
#initialize ⇒ SignalWait
{{{
23 24 25 |
# File 'lib/ruby/riddl/client.rb', line 23 def initialize @q = Queue.new end |
Instance Method Details
#continue ⇒ Object
31 32 33 |
# File 'lib/ruby/riddl/client.rb', line 31 def continue @q.push nil end |
#wait(num = 1) ⇒ Object
27 28 29 |
# File 'lib/ruby/riddl/client.rb', line 27 def wait(num=1) num.times{ @q.deq } end |