Sha256: 1a1a6aaf1395671d9fc75dc6b1a0ec18ff1e24ffa1b2165ca79582d4a0560d95
Contents?: true
Size: 487 Bytes
Versions: 3
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Ragent module Plugin class TimeBomb class Bomb include Celluloid include Celluloid::Notifications include Ragent::Logging finalizer :stop def initialize async.start end def start every(5) do publish 'time-bomb-boom', expode_at: Time.now end end def stop info 'disarmed' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ragent-0.0.6 | examples/lib/ragent/plugin/time_bomb/bomb.rb |
ragent-0.0.5 | examples/lib/ragent/plugin/time_bomb/bomb.rb |
ragent-0.0.4 | examples/lib/ragent/plugin/time_bomb/bomb.rb |