Commit 2b61e02e authored by Denis Bilenko's avatar Denis Bilenko

formatting changes

parent bb287971
...@@ -3,15 +3,14 @@ ...@@ -3,15 +3,14 @@
Timeout API was changed in backward incompatible way: Timeout API was changed in backward incompatible way:
Timeout.__init__ does not start the timer immediately anymore; start() must be Timeout.__init__ does not start the timer immediately anymore; start() must be
called explicitly. A shourtcut, Timeout.start_new is provided, that creates called explicitly. A shourtcut - Timeout.start_new - is provided that creates
and starts a Timeout. and starts a Timeout.
Added gevent.Greenlet class which is a subclass of greenlet that adds a few Added gevent.Greenlet class which is a subclass of greenlet that adds a few
useful methods join/get/kill/link. See the docstrings for details. useful methods join/get/kill/link. See the docstrings for details.
gevent.spawn now returns Greenlet instance. gevent.spawn now returns Greenlet instance. The old gevent.spawn, which returns
The old gevent.spawn, which returns py.magic.greenlet instance, can be still py.magic.greenlet instance, can be still accessed as gevent.spawn_raw.
accessed as gevent.spawn_raw.
The implementation of Greenlet is an improvement on proc module, with these bugs The implementation of Greenlet is an improvement on proc module, with these bugs
fixed: fixed:
...@@ -23,14 +22,14 @@ fixed: ...@@ -23,14 +22,14 @@ fixed:
- Proc cannot be easily subclassed. To subclass Greenlet, override its _run - Proc cannot be easily subclassed. To subclass Greenlet, override its _run
and __init__ methods. and __init__ methods.
Added gevent.pool.Pool class which supports a number of methods multiprocessing.Pool Added gevent.pool.Pool class which supports a number of multiprocessing.Pool's
supports. In addition it also has spawn() method which is always async and methods: apply, map and others. It also has spawn() method which is always
returns a Greenlet instance. async and returns a Greenlet instance.
Added gevent.event.Event and gevent.event.AsyncResult: Added gevent.event module with 2 classes: Event and AsyncResult.
Event is a drop-in replacement for threading.Event, supporting set/wait/get methods. Event is a drop-in replacement for threading.Event, supporting set/wait/get
AsyncResult is an extension of Event that supports exception passing via methods. AsyncResult is an extension of Event that supports exception passing
set_exception method. via set_exception method.
Added queue.JoinableQueue class with task_done() and join() methods. Added queue.JoinableQueue class with task_done() and join() methods.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment