Sha256: 0bc8415e67d42eb3863c807c739ead0b233260db3ba18a48f2af04f739bf3212
Contents?: true
Size: 256 Bytes
Versions: 1
Compression:
Stored size: 256 Bytes
Contents
module LightIO class Timer < Watcher attr_reader :interval attr_accessor :uuid def initialize(interval, &blk) @interval = interval @callback = blk end def register(backend) backend.add_timer(self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lightio-0.1.0.pre | lib/lightio/timer.rb |