Skip to content

Instantly share code, notes, and snippets.

@jmettraux
Created August 14, 2014 20:52
Show Gist options
  • Save jmettraux/3245c45f49693a2f5e57 to your computer and use it in GitHub Desktop.
Save jmettraux/3245c45f49693a2f5e57 to your computer and use it in GitHub Desktop.
require 'rufus-scheduler'
work = proc {}
s = Rufus::Scheduler.new
j = s.schedule_in(0, work)
sleep 1
p j.next_time
# => nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment