summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-policy.rst
Commit message (Collapse)AuthorAgeFilesLines
* gh-100160: Restore and deprecate implicit creation of an event loop (GH-100410)Serhiy Storchaka2023-01-131-3/+5
| | | | | | | | | | Partially revert changes made in GH-93453. asyncio.DefaultEventLoopPolicy.get_event_loop() now emits a DeprecationWarning and creates and sets a new event loop instead of raising a RuntimeError if there is no current event loop set. Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
* gh-93453: No longer create an event loop in get_event_loop() (#98440)Serhiy Storchaka2022-12-061-0/+4
| | | | | | | | | | | | | | | asyncio.get_event_loop() now always return either running event loop or the result of get_event_loop_policy().get_event_loop() call. The latter should now raise an RuntimeError if no current event loop was set instead of creating and setting a new event loop. It affects also a number of asyncio functions and constructors which call get_event_loop() implicitly: ensure_future(), shield(), gather(), etc. DeprecationWarning is no longer emitted if there is no running event loop but the current event loop was set. Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* GH-94597: add deprecation warnings for subclassing `AbstractChildWatcher` ↵Kumar Aditya2022-11-121-0/+3
| | | | (#99386)
* GH-94597: Deprecate child watcher getters and setters (#98215)Kumar Aditya2022-10-151-0/+14
| | | | | | | This is the next step for deprecating child watchers. Until we've removed the API completely we have to use it, so this PR is mostly suppressing a lot of warnings when using the API internally. Once the child watcher API is totally removed, the two child watcher implementations we actually use and need (Pidfd and Thread) will be turned into internal helpers.
* fixup policy docs (#97618)Kumar Aditya2022-09-281-1/+1
|
* gh-96377: Update asyncio policy doc intro paras to be clear and accurate ↵C.A.M. Gerlach2022-09-271-11/+25
| | | | | (#97603) Also fix up some cross-references in the asyncio docs.
* [doc] Fix erroneous backslashes in signatures and names (GH-23658)Andre Delfino2020-12-171-1/+1
| | | | | The issue being resolved is shown in the 3.10 docs (if you select docs for older versions you won't see a visual glitch). The newer sphinx version that produces the 3.10 docs doesn't treat the backslash to escape things in some situations it previously did.
* fix typo in ThreadedChildWatcher docs (GH-23277)Thomas Grainger2020-11-141-1/+1
|
* bpo-41959: Fix grammar around class asyncio.MultiLoopChildWatcher text ↵Raúl Cumplido2020-10-211-1/+1
| | | | | (GH-22580) While translating the following document to Spanish we found there is a grammar issue on the original documentation.
* closes bpo-38692: Add a pidfd child process watcher to asyncio. (GH-17069)Benjamin Peterson2019-11-141-0/+12
|
* bpo-35621: Support running subprocesses in asyncio when loop is executed in ↵Andrew Svetlov2019-06-301-8/+54
| | | | non-main thread (GH-14344)
* Fix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() ↵sth2018-12-301-1/+1
| | | | | (GH-11369) `set_child_watcher()` *sets* the watcher.
* bpo-11233: Create availability directive for documentation (GH-9692)Cheryl Sabella2018-10-121-2/+2
| | | | | | Replace "Availability: xxx" with ".. availability:: xxx" in the doc. Original patch by Georg Brandl. Co-Authored-By: Georg Brandl <georg@python.org>
* bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)Victor Stinner2018-09-251-1/+13
|
* bpo-33649: A copy-editing pass on asyncio documentation (GH-9376)Elvis Pranskevichus2018-09-171-12/+11
|
* edit async policy doc - second pass (GH-9235)Carol Willing2018-09-131-6/+6
|
* bpo-33649: First asyncio docs improvement pass (GH-9142)Yury Selivanov2018-09-111-0/+222
Rewritten/updated sections: * Event Loop APIs * Transports & Protocols * Streams * Exceptions * Policies * Queues * Subprocesses * Platforms