0.0
No commit activity in last 3 years
No release in over 3 years
Create cancelable timer objects that will call a given callback when time has elapsed. Implemented using a single scheduling thread.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Callback Timer

A Ruby Gem to create timers. The timer objects will call a given callback when the time has elapsed or can be canceled before then. Callback Timer only uses a single thread to schedule all the timers.

Install

gem install callback_timer

Documentation

Yard Docs

Example

require 'callback_timer'

greeting_callback = proc { puts 'Hello World!' }
CallbackTimer.new(callback: greeting_callback, duration: 5)