Class: Revactor::Delegator

A Delegator whose delegate runs in a separate Actor. This allows an easy method for constructing synchronous calls to a separate Actor which cause the current Actor to block until they complete.

Public Class Methods


new (obj)

Create a new delegator for the given object

Public Instance Methods



send (meth, *args, &block)

Send a message to the Actor delegate


stop ()

Stop the delegator Actor

Protected Instance Methods


handle_call (message)

Wrapper for calling the provided object‘s handle_call method


handle_message (message)

Dispatch the incoming message to the appropriate handler


start ()

Start the server