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
d69c1990
Commit
d69c1990
authored
Jul 15, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timeout: minor documetation updates
parent
7f1a6a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/timeout.py
gevent/timeout.py
+3
-3
No files found.
gevent/timeout.py
View file @
d69c1990
...
...
@@ -30,16 +30,16 @@ except NameError: # Python < 2.5
class
Timeout
(
BaseException
):
"""Raise *exception* in the current greenlet after
*timeout* seconds
::
"""Raise *exception* in the current greenlet after
given time period
::
timeout = Timeout(seconds, exception)
timeout.start()
try:
... # ex
ecution here is limited by timeout
... # ex
ception will be raised here, after *seconds* passed since start() call
finally:
timeout.cancel()
When *exception* is omitted or ``None``, :class:`Timeout` instance itself is raised:
When *exception* is omitted or ``None``,
the
:class:`Timeout` instance itself is raised:
>>> Timeout(0.1).start()
>>> gevent.sleep(0.2)
...
...
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