Method: Browser::Window#after

Defined in:
lib/reactive_record/interval.rb

#after(time, &block) ⇒ Delay

Execute a block after the given seconds.

Parameters:

  • time (Float)

    the seconds after it gets called

Returns:

  • (Delay)

    the object representing the timeout



151
152
153
# File 'lib/reactive_record/interval.rb', line 151

def after(time, &block)
  Delay.new(@native, time, &block).tap(&:start)
end