Sha256: c35994fb417517c447e5b1147e77d6657fe99b2cc3bba9ec06af74953c378c03

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

module LightIO
  module Watchers
    class Timer < Watcher
      attr_reader :interval
      attr_accessor :uuid

      def initialize(interval)
        @interval = interval
      end

      def start(ioloop)
        ioloop.add_timer(self)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lightio-0.4.4 lib/lightio/watchers/timer.rb
lightio-0.4.3 lib/lightio/watchers/timer.rb
lightio-0.4.2 lib/lightio/watchers/timer.rb
lightio-0.4.1 lib/lightio/watchers/timer.rb
lightio-0.4.0 lib/lightio/watchers/timer.rb
lightio-0.4.0.pre lib/lightio/watchers/timer.rb
lightio-0.3.2 lib/lightio/watchers/timer.rb
lightio-0.3.1 lib/lightio/watchers/timer.rb
lightio-0.3.0 lib/lightio/watchers/timer.rb
lightio-0.2.2 lib/lightio/watchers/timer.rb
lightio-0.2.1 lib/lightio/watchers/timer.rb
lightio-0.2.0 lib/lightio/watchers/timer.rb
lightio-0.1.1 lib/lightio/watchers/timer.rb
lightio-0.1.0 lib/lightio/watchers/timer.rb