Method: Kernel#after!
- Defined in:
- lib/reactive_record/interval.rb
#after!(time, &block) ⇒ Delay
Execute a block after the given seconds, you have to call [#start] on it yourself.
175 176 177 |
# File 'lib/reactive_record/interval.rb', line 175 def after!(time, &block) `setTimeout(#{block.to_n}, time * 1000)` end |