Sha256: d75b64e167ff04edda5a2b1b14da6c567056b0f477fcc66b08dcc5aa3f8fb400

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

module NodeRb

  class << self

    def once timeout, &block
      NodeRb.once_native(timeout * 1000, 0, block)
    end

    def repeat repeat, handler, timeout = nil
      timeout ||= repeat
      NodeRb.once_native(timeout * 1000, repeat * 1000, handler)
    end

  end

  module Timer

    def call
      
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
noderb-0.0.11 lib/noderb/timers.rb
noderb-0.0.10 lib/noderb/timers.rb
noderb-0.0.9 lib/noderb/timers.rb
noderb-0.0.8 lib/noderb/timers.rb
noderb-0.0.7 lib/noderb/timers.rb
noderb-0.0.6 lib/noderb/timers.rb
noderb-0.0.4 lib/noderb/timers.rb