Did I find the right examples for you? yes no

All Samples(17)  |  Call(7)  |  Derive(0)  |  Import(10)
An :class:`ActorProxy` wraps an :class:`ActorRef <pykka.ActorRef>`
instance. The proxy allows the referenced actor to be used through regular
method calls and field access.

You can create an :class:`ActorProxy` from any :class:`ActorRef
<pykka.ActorRef>`::

    actor_ref = MyActor.start()
    actor_proxy = ActorProxy(actor_ref)
(more...)

src/p/y/Pykka-1.2.0/pykka/actor.py   Pykka(Download)
from pykka.exceptions import ActorDeadError as _ActorDeadError
from pykka.future import ThreadingFuture as _ThreadingFuture
from pykka.proxy import ActorProxy as _ActorProxy
from pykka.registry import ActorRegistry as _ActorRegistry
 
        :return: :class:`pykka.ActorProxy`
        """
        return _ActorProxy(self)
 

src/p/y/pykka-HEAD/pykka/actor.py   pykka(Download)
from pykka.exceptions import ActorDeadError as _ActorDeadError
from pykka.future import ThreadingFuture as _ThreadingFuture
from pykka.proxy import ActorProxy as _ActorProxy
from pykka.registry import ActorRegistry as _ActorRegistry
 
        :return: :class:`pykka.ActorProxy`
        """
        return _ActorProxy(self)
 

src/x/b/xbmc-addon-watchdog-HEAD/lib/pykka/actor.py   xbmc-addon-watchdog(Download)
from pykka.exceptions import ActorDeadError as _ActorDeadError
from pykka.future import ThreadingFuture as _ThreadingFuture
from pykka.proxy import ActorProxy as _ActorProxy
from pykka.registry import ActorRegistry as _ActorRegistry
 
        :return: :class:`pykka.ActorProxy`
        """
        return _ActorProxy(self)
 

src/p/y/Pykka-1.2.0/pykka/__init__.py   Pykka(Download)
# flake8: noqa
from pykka.actor import Actor, ActorRef, ThreadingActor
from pykka.exceptions import ActorDeadError, Timeout
from pykka.future import Future, get_all, ThreadingFuture
from pykka.proxy import ActorProxy

src/p/y/pykka-HEAD/pykka/__init__.py   pykka(Download)
# flake8: noqa
from pykka.actor import Actor, ActorRef, ThreadingActor
from pykka.exceptions import ActorDeadError, Timeout
from pykka.future import Future, get_all, ThreadingFuture
from pykka.proxy import ActorProxy

src/x/b/xbmc-addon-watchdog-HEAD/lib/pykka/__init__.py   xbmc-addon-watchdog(Download)
# flake8: noqa
from pykka.actor import Actor, ActorRef, ThreadingActor
from pykka.exceptions import ActorDeadError, Timeout
from pykka.future import Future, get_all, ThreadingFuture
from pykka.proxy import ActorProxy

src/p/y/pykka-HEAD/tests/proxy_test.py   pykka(Download)
import unittest
 
from pykka import ActorDeadError
from pykka.actor import ThreadingActor
from pykka.proxy import ActorProxy
    def setUp(self):
        self.proxy = ActorProxy(self.AnActor.start())
 
    def tearDown(self):
        try:
    def test_proxy_constructor_raises_exception_if_actor_is_dead(self):
        actor_ref = self.AnActor.start()
        actor_ref.stop()
        try:
            ActorProxy(actor_ref)

src/p/y/pykka-HEAD/tests/namespace_test.py   pykka(Download)
    def test_actor_proxy_import(self):
        from pykka import ActorProxy as ActorProxy1
        from pykka.proxy import ActorProxy as ActorProxy2
        self.assertEqual(ActorProxy1, ActorProxy2)
 

src/p/y/Pykka-1.2.0/tests/proxy_test.py   Pykka(Download)
import unittest
 
from pykka import ActorDeadError
from pykka.actor import ThreadingActor
from pykka.proxy import ActorProxy
    def setUp(self):
        self.proxy = ActorProxy(self.AnActor.start())
 
    def tearDown(self):
        try:
    def test_proxy_constructor_raises_exception_if_actor_is_dead(self):
        actor_ref = self.AnActor.start()
        actor_ref.stop()
        try:
            ActorProxy(actor_ref)

src/p/y/Pykka-1.2.0/tests/namespace_test.py   Pykka(Download)
    def test_actor_proxy_import(self):
        from pykka import ActorProxy as ActorProxy1
        from pykka.proxy import ActorProxy as ActorProxy2
        self.assertEqual(ActorProxy1, ActorProxy2)