Module: Kernel
- Defined in:
- lib/thread/promise.rb,
lib/thread/future.rb,
lib/thread/every.rb,
lib/thread/delay.rb
Instance Method Summary collapse
-
#delay(&block) ⇒ Object
Helper to create a Thread::Delay.
-
#every(every, &block) ⇒ Object
Helper to create an every.
-
#future(pool = nil, &block) ⇒ Object
Helper to create a future.
-
#promise ⇒ Object
Helper method to create a promise.
Instance Method Details
#delay(&block) ⇒ Object
Helper to create a Thread::Delay
91 92 93 |
# File 'lib/thread/delay.rb', line 91 def delay (&block) Thread::Delay.new(&block) end |
#every(every, &block) ⇒ Object
Helper to create an every
194 195 196 |
# File 'lib/thread/every.rb', line 194 def every (every, &block) Thread::Every.new(every, &block) end |