Module ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A spinoff.actor.ref _BaseRef TypedRef N/A _BaseRef N/A N/A Base class for typed references.

    Typed references allow providing of a strongly typed interface to actor refs by exposing (a subset of) the list of
    the messages an actor responds to as methods.

    This class provides the same interface as regular, untyped references. Methods of subclasses of this class should
    be implemented by (directly or indirectly) sending messages to `self.ref`.

    To turn an untyped reference into a typed reference, wrap it with the `TypedRef` subclass.

    Example:

        class Adder(Actor):
            def receive(self, msg):
            if ('add', ANY, ANY) == msg:
                _, operands, r = msg
                r << sum(operands)
            else:
                raise Unhandled

            class Ref(TypedRef):
                def add(self, *operands):
                    deferred, tmp = TempActor.spawn()
                    self.ref << ('add', operands, tmp)
                    return deferred

        adder = Adder.Ref(self.spawn(Adder))
        sum_ = adder.add(1, 2)

     __init__ N/A N/A self ref N/A N/A N/A N/A self ref ref N/A is_local N/A N/A self N/A N/A N/A N/A N/A self ref is_local N/A property is_stopped N/A N/A self N/A N/A N/A N/A N/A self ref is_stopped N/A property uri N/A N/A self N/A N/A N/A N/A N/A self ref uri N/A property __div__ N/A N/A self next N/A N/A N/A N/A N/A N/A self ref __div__ next N/A __lshift__ N/A N/A self message N/A N/A N/A N/A N/A N/A self ref __lshift__ message N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A self ref stop N/A __repr__ N/A N/A self N/A N/A N/A N/A repr N/A self ref N/A N/A