class Browser::Window
Public Instance Methods
after(time, &block)
click to toggle source
Execute a block after the given seconds.
@param time [Float] the seconds after it gets called
@return [Delay] the object representing the timeout
# File lib/reactive_record/interval.rb, line 151 def after(time, &block) Delay.new(@native, time, &block).tap(&:start) end
after!(time, &block)
click to toggle source
Execute a block after the given seconds, you have to call [#start] on it yourself.
@param time [Float] the seconds after it gets called
@return [Delay] the object representing the timeout
# File lib/reactive_record/interval.rb, line 161 def after!(time, &block) Delay.new(@native, time, &block) end
every(time, &block)
click to toggle source
Execute the block every given seconds.
@param time [Float] the seconds between every call
@return [Interval] the object representing the interval
# File lib/reactive_record/interval.rb, line 72 def every(time, &block) Interval.new(@native, time, &block).tap(&:start) end
every!(time, &block)
click to toggle source
Execute the block every given seconds, you have to call [#start] on it yourself.
@param time [Float] the seconds between every call
@return [Interval] the object representing the interval
# File lib/reactive_record/interval.rb, line 82 def every!(time, &block) Interval.new(@native, time, &block) end