Sha256: 8d589f1d515ac6099dce46b9248d6280568191f696c45c277e7d8933ffc49684

Contents?: true

Size: 263 Bytes

Versions: 1

Compression:

Stored size: 263 Bytes

Contents

module PbActor
  module Message
    class << self
      def send msg, wr
        Marshal.dump(msg, wr)
      rescue Errno::EPIPE => e
        raise DeadActorError, 'dead actor call'
      end

      def recv rd
        Marshal.load rd
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pb_actor-0.0.3 lib/pb_actor/message.rb