Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
77ff459b
Commit
77ff459b
authored
May 11, 2015
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs/asyncio: Document set_task_factory/get_task_factory
parent
31832657
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+20
-0
No files found.
Doc/library/asyncio-eventloop.rst
View file @
77ff459b
...
...
@@ -181,6 +181,26 @@ Coroutines
.. versionadded:: 3.4.2
.. method:: BaseEventLoop.set_task_factory(factory)
Set a task factory that will be used by
:meth:`BaseEventLoop.create_task`.
If *factory* is ``None`` the default task factory will be set.
If *factory* is a *callable*, it should have a signature matching
``(loop, coro)``, where *loop* will be a reference to the active
event loop, *coro* will be a coroutine object. The callable
must return an :class:`asyncio.Future` compatible object.
.. versionadded:: 3.4.4
.. method:: BaseEventLoop.get_task_factory()
Return a task factory, or ``None`` if the default one is in use.
.. versionadded:: 3.4.4
Creating connections
--------------------
...
...
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