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.5 test/t.rb
rufus-scheduler-2.0.4 test/t.rb