Commit 18241ee1 authored by Denis Bilenko's avatar Denis Bilenko

minor change in intro.rst

parent 533607d9
...@@ -115,9 +115,8 @@ Lightweight pseudothreads ...@@ -115,9 +115,8 @@ Lightweight pseudothreads
The greenlets are spawned by creating a :class:`Greenlet` instance and calling its :meth:`start <Greenlet.start>` The greenlets are spawned by creating a :class:`Greenlet` instance and calling its :meth:`start <Greenlet.start>`
method. (The :func:`spawn` function is a shortcut that does exactly that). The :meth:`start <Greenlet.start>` method. (The :func:`spawn` function is a shortcut that does exactly that). The :meth:`start <Greenlet.start>`
method schedules an :class:`event <gevent.core.active_event>` that will switch to the greenlet created, as soon method schedules a switch to the greenlet that will happen as soon as the current greenlet gives up control.
as the current greenlet gives up control. If there is more than one active event, they will be executed If there is more than one active event, they will be executed one by one, in an undefined order.
one by one, in an undefined order.
If there was an error during execution it won't escape greenlet's boundaries. An unhandled error results If there was an error during execution it won't escape greenlet's boundaries. An unhandled error results
in a stacktrace being printed complemented by failed function signature and arguments: in a stacktrace being printed complemented by failed function signature and arguments:
......
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