Did I find the right examples for you? yes no

All Samples(15)  |  Call(0)  |  Derive(5)  |  Import(10)
To create an actor:

1. subclass one of the :class:`Actor` implementations, e.g.
   :class:`GeventActor <pykka.gevent.GeventActor>` or
   :class:`ThreadingActor`,
2. implement your methods, including :meth:`__init__`, as usual,
3. call :meth:`Actor.start` on your actor class, passing the method any
   arguments for your constructor.

To stop an actor, call :meth:`Actor.stop()` or :meth:`ActorRef.stop()`.(more...)

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-1.2.0/pykka/gevent.py   Pykka(Download)
 
from pykka import Timeout as _Timeout
from pykka.actor import Actor as _Actor
from pykka.future import Future as _Future
 
class GeventActor(_Actor):
    """
    :class:`GeventActor` implements :class:`pykka.Actor` using the `gevent
    <http://www.gevent.org/>`_ library. gevent is a coroutine-based Python
    networking library that uses greenlet to provide a high-level synchronous

src/p/y/Pykka-1.2.0/pykka/eventlet.py   Pykka(Download)
 
from pykka import Timeout as _Timeout
from pykka.actor import Actor as _Actor
from pykka.future import Future as _Future
 
class EventletActor(_Actor):
    """
    :class:`EventletActor` implements :class:`pykka.Actor` using the `eventlet
    <http://eventlet.net/>`_ library.
 

src/p/y/pykka-HEAD/pykka/gevent.py   pykka(Download)
 
from pykka import Timeout as _Timeout
from pykka.actor import Actor as _Actor
from pykka.future import Future as _Future
 
class GeventActor(_Actor):
    """
    :class:`GeventActor` implements :class:`pykka.Actor` using the `gevent
    <http://www.gevent.org/>`_ library. gevent is a coroutine-based Python
    networking library that uses greenlet to provide a high-level synchronous

src/p/y/pykka-HEAD/pykka/eventlet.py   pykka(Download)
 
from pykka import Timeout as _Timeout
from pykka.actor import Actor as _Actor
from pykka.future import Future as _Future
 
class EventletActor(_Actor):
    """
    :class:`EventletActor` implements :class:`pykka.Actor` using the `eventlet
    <http://eventlet.net/>`_ library.
 

src/x/b/xbmc-addon-watchdog-HEAD/lib/pykka/gevent.py   xbmc-addon-watchdog(Download)
 
from pykka import Timeout as _Timeout
from pykka.actor import Actor as _Actor
from pykka.future import Future as _Future
 
class GeventActor(_Actor):
    """
    :class:`GeventActor` implements :class:`pykka.Actor` using the `gevent
    <http://www.gevent.org/>`_ library. gevent is a coroutine-based Python
    networking library that uses greenlet to provide a high-level synchronous

src/p/y/pykka-HEAD/tests/namespace_test.py   pykka(Download)
    def test_actor_import(self):
        from pykka import Actor as Actor1
        from pykka.actor import Actor as Actor2
        self.assertEqual(Actor1, Actor2)
 

src/p/y/Pykka-1.2.0/tests/namespace_test.py   Pykka(Download)
    def test_actor_import(self):
        from pykka import Actor as Actor1
        from pykka.actor import Actor as Actor2
        self.assertEqual(Actor1, Actor2)