Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
em-cron
cron-style methods for timers in EventMachine
examples:
EM.do_hourly(:starting => :now) { puts "drink a beer" }
EM.do_daily { puts "take a shower" }
EM.do_weekly(:starting => 10.hours.from_now) { puts "take out the garbage" }
EM.do_monthly(:starting => 1.day.from_now) { puts "pay the bills" }
EM.do_monthly(:starting => 2592000) { puts "pay the bills, in seconds!" }
require 'chronic' EM.do(:every => 2.hours, :starting => 'next tuesday at 9am') { puts "go pee" }
EM.do(:every => 1.minutes + 3.seconds) { puts "hi!" }
TODO:
Maintain a list of task signatures and their associated timer signatures so cron tasks can be canceled.
jakecdouglas@gmail.com yakischloba on Freenode #eventmachine
FAQs
Unknown package
We found that yakischloba-em-cron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.