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
2172dbed
Commit
2172dbed
authored
Jan 28, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Greenlet: improve docstrings
parent
d0e623de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/greenlet.py
gevent/greenlet.py
+3
-3
No files found.
gevent/greenlet.py
View file @
2172dbed
...
...
@@ -202,8 +202,8 @@ class Greenlet(greenlet):
def
throw
(
self
,
*
args
):
"""Immediatelly switch into the greenlet and raise an exception in it.
Can
only be called from the HUB, otherwise the current greenlet is left unscheduled forever.
To raise an exception in a safely manner, use :meth:`kill`.
Should
only be called from the HUB, otherwise the current greenlet is left unscheduled forever.
To raise an exception in a safely manner
from any greenlet
, use :meth:`kill`.
"""
if
self
.
_start_event
is
not
None
:
self
.
_start_event
.
cancel
()
...
...
@@ -406,7 +406,7 @@ class Greenlet(greenlet):
def
link
(
self
,
receiver
=
None
,
GreenletLink
=
GreenletLink
,
SpawnedLink
=
SpawnedLink
):
"""Link greenlet's completion to callable or another greenlet.
If *receiver* is a callable then it will be called
and passed this instance
If *receiver* is a callable then it will be called
with this instance as an argument
once this greenlet's dead. A callable is called in its own greenlet.
If *receiver* is a greenlet then an :class:`LinkedExited` exception will be
...
...
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