Sha256: 8747a45b4df10ee159ee09ccab0935778664c6a3ec7df2dd20924f8fe310859f

Contents?: true

Size: 175 Bytes

Versions: 27

Compression:

Stored size: 175 Bytes

Contents

module Kernel
  def every(time, &block)
    Thread.new { loop { sleep time; block.call }}
  end

  def after(time, &block)
    Thread.new { sleep time; block.call }
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
hyper-operation-1.0.alpha1.5 lib/hyper-operation/delay_and_interval.rb
hyper-operation-1.0.alpha1.4 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.6 lib/hyper-operation/delay_and_interval.rb
hyper-operation-1.0.alpha1.3 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.5 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.4 lib/hyper-operation/delay_and_interval.rb
hyper-operation-1.0.alpha1.2 lib/hyper-operation/delay_and_interval.rb
hyper-operation-1.0.alpha1.1 lib/hyper-operation/delay_and_interval.rb
hyper-operation-1.0.alpha1 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.3 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.2 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.1 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.99.0 lib/hyper-operation/delay_and_interval.rb
hyper-operation-1.0.0.lap28 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.5.12 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.5.11 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.5.10 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.5.9 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.5.8 lib/hyper-operation/delay_and_interval.rb
hyper-operation-0.5.7 lib/hyper-operation/delay_and_interval.rb