Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
aba23c21
Commit
aba23c21
authored
Nov 15, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slightly better wording in the doc
parent
6931dc1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
doc/intro.rst
doc/intro.rst
+7
-7
gevent/timeout.py
gevent/timeout.py
+1
-1
No files found.
doc/intro.rst
View file @
aba23c21
...
...
@@ -54,11 +54,11 @@ __ http://bitbucket.org/denis/gevent/src/tip/examples/concurrent_download.py
Usage notes
-----------
Note, that greenlets are cooperatively scheduled. This means that
a greenlet
must give up control or all other greenlets won't get a chance to execute
.
This typically is not an issue for
I/O bound app, but one should be aware
of th
at if doing something CPU intensive or that otherwise does blocking I/O
bypassing lib
event loop.
Note, that greenlets are cooperatively scheduled. This means that
until a
particular greenlet gives up control, other greenlets won't get a chance to run
.
It is typically not an issue for an
I/O bound app, but one should be aware
of th
is when doing something CPU intensive or calling blocking I/O functions
that bypass libevent
event loop.
.. currentmodule:: gevent.hub
...
...
@@ -72,8 +72,8 @@ instance yet, one is created on the fly.
.. currentmodule:: gevent
The blocking gevent API does not work in the :class:`Hub <hub.Hub>` greenlet. Typically
it's not a problem as most of the library takes care not to run
the
user-supplied
callback in the :class:`Hub <hub.Hub>`. The exception is :meth:`Greenlet.rawlink`
it's not a problem as most of the library takes care not to run user-supplied
callback
s
in the :class:`Hub <hub.Hub>`. The exception is :meth:`Greenlet.rawlink`
and :meth:`Event.rawlink <event.Event.rawlink>` methods as well as everything
in the :mod:`gevent.core` module.
...
...
gevent/timeout.py
View file @
aba23c21
...
...
@@ -47,7 +47,7 @@ class Timeout(BaseException):
...
Timeout: 0.1 seconds
For Python
starting with 2.5
``with`` statement can be used::
For Python
2.5 and newer
``with`` statement can be used::
with Timeout(seconds, exception) as timeout:
pass # ... code block ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment