Sha256: ede61dcd00d60a5a646299df66dab2b7ef1cda2022012bb77128e25eec05b7a7
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
module PbActor module Message class << self def send msg, wr Marshal.dump(msg, wr) rescue Errno::EPIPE => e raise DeadActorError, PbActor.dead_actor_msg end def recv rd Marshal.load rd rescue EOFError => e raise DeadActorError, PbActor.dead_actor_msg end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pb_actor-0.0.5 | lib/pb_actor/message.rb |