Sha256: 1d2051c61cd9faf8f2006c2183adcfe97033432d835c86289f024782b47f3967
Contents?: true
Size: 497 Bytes
Versions: 24
Compression:
Stored size: 497 Bytes
Contents
module Concurrent module Actor module Behaviour # Accepts `:await` messages. Which allows to wait on Actor to process all previously send # messages. # # actor << :a << :b # actor.ask(:await).wait # blocks until :a and :b are processed class Awaits < Abstract def on_envelope(envelope) if envelope.message == :await true else pass envelope end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems