Method: Browser::Window#after!

Defined in:
opal/browser/delay.rb

#after!(time, &block) ⇒ Delay

Execute a block after the given seconds, you have to call [#start] on it yourself.

Parameters:

  • time (Float)

    the seconds after it gets called

Returns:

  • (Delay)

    the object representing the timeout


50
51
52
# File 'opal/browser/delay.rb', line 50

def after!(time, &block)
  Delay.new(@native, time, &block)
end