Sha256: b42c93d1aff2d903c4d5669f69d0de69efefdb29606df57eff19e5f8307edbb2
Contents?: true
Size: 702 Bytes
Versions: 8
Compression:
Stored size: 702 Bytes
Contents
unless $CELLULOID_BACKPORTED == false class DeprecatedTestEventedMailbox < Celluloid::Mailbox::Evented class Reactor def initialize @condition = ConditionVariable.new @mutex = Mutex.new end def wakeup @mutex.synchronize do @condition.signal end end def run_once(timeout) @mutex.synchronize do @condition.wait(@mutex, timeout) end end def shutdown end end def initialize super(Reactor) end end RSpec.describe "Deprecated Celluloid::Mailbox::Evented" do subject { DeprecatedTestEventedMailbox.new } it_behaves_like "a Celluloid Mailbox" end end
Version data entries
8 entries across 8 versions & 1 rubygems