Sha256: f60a2ecfad1287ddc51353aa5665cdc18a9215924f79ec9a2086d2e7b01334f7

Contents?: true

Size: 198 Bytes

Versions: 22

Compression:

Stored size: 198 Bytes

Contents

$:.unshift('lib')

require 'rubygems'
require 'rufus/scheduler/em'

# scheduler


s = Rufus::Scheduler.start_new

puts Time.now.to_s

s.in('1s') do
  p [ :in, Time.now.to_s ]
  exit 0
end

s.join

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
rufus-scheduler-2.0.24 test/t.rb
rufus-scheduler-2.0.23 test/t.rb
rufus-scheduler-2.0.22 test/t.rb
rufus-scheduler-2.0.21 test/t.rb
rufus-scheduler-2.0.20 test/t.rb
rufus-scheduler-2.0.19 test/t.rb
rufus-scheduler-2.0.18 test/t.rb
rufus-scheduler-2.0.17 test/t.rb
rufus-scheduler-2.0.16 test/t.rb
rufus-scheduler-2.0.15 test/t.rb
rufus-scheduler-2.0.14 test/t.rb
rufus-scheduler-2.0.13 test/t.rb
rufus-scheduler-2.0.12 test/t.rb
rufus-scheduler-2.0.11 test/t.rb
rufus-scheduler-2.0.10 test/t.rb
rufus-scheduler-2.0.9 test/t.rb
rufus-scheduler-2.0.8 test/t.rb
rufus-scheduler-2.0.7 test/t.rb
tanzeeb-rufus-scheduler-2.0.7.2 test/t.rb
rufus-scheduler-2.0.6 test/t.rb