summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-task.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36999: Add asyncio.Task.get_coro() (GH-13680)Alex Grönholm2019-05-301-0/+6
| | | https://bugs.python.org/issue36999
* bpo-36932: use proper deprecation-removed directive (GH-13349)Matthias Bussonnier2019-05-211-15/+22
| | | | | | | | .. And update some deprecation warnings with version numbers. https://bugs.python.org/issue36932
* Orthographical fix (GH-13418)Boštjan Mejak2019-05-191-1/+1
| | | Add a missing comma.
* bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)Andrew Svetlov2019-05-161-3/+4
| | | | | | The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is. https://bugs.python.org/issue36921
* bpo-35579: Fix typo in in asyncio-task documentation (GH-11321)Vaibhav Gupta2018-12-261-1/+1
| | | | | | https://bugs.python.org/issue35579 https://bugs.python.org/issue35579
* Use f-strings in asyncio-task code examples (GH-10035)Mariatta2018-10-241-6/+6
| | | Replace str.format with f-strings in the code examples of asyncio-task documentation.
* bpo-34476: Document that asyncio.sleep() always suspends. (#9643)Hrvoje Nikšić2018-10-011-0/+3
|
* bpo-34802: Fix asyncio.iscoroutine() docs (GH-9611)Yury Selivanov2018-09-271-2/+1
|
* asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579)Yury Selivanov2018-09-251-5/+5
|
* bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. ↵Yury Selivanov2018-09-251-4/+36
| | | | (GH-9543)
* bpo-33649: Fix gather() docs; fix title; few other nits. (GH-9475)Yury Selivanov2018-09-211-11/+15
|
* bpo-33649: More improvements (GH-9439)Yury Selivanov2018-09-201-43/+131
|
* bpo-33649: Add a high-level section about Futures; few quick fixes (GH-9403)Yury Selivanov2018-09-181-43/+124
| | | Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* bpo-33649: Fix markup; add another note that asyncio.run is 3.7+ (GH-9389)Yury Selivanov2018-09-181-1/+2
|
* Fix syntax error on Asyncio example in doc (GH-9387)Miguel Ángel García2018-09-181-1/+1
| | | The `gather` method requires to close the parenthesis, but it is being closed twice.
* Change "set_after" reference to `say_after`. (GH-9384)Danny Hermes2018-09-181-1/+1
|
* bpo-33649: A copy-editing pass on asyncio documentation (GH-9376)Elvis Pranskevichus2018-09-171-26/+26
|
* bpo-33649: Add low-level APIs index. (GH-9364)Yury Selivanov2018-09-171-2/+2
|
* bpo-33649: Add high-level APIs cheat-sheet (GH-9319)Yury Selivanov2018-09-141-1/+7
|
* bpo-33649: Refresh Tasks and Futures pages (#9314)Yury Selivanov2018-09-141-571/+474
| | | | | | | | * bpo-33649: Refresh Tasks and Futures pages * Fixes * Fix markup
* bpo-33649: First asyncio docs improvement pass (GH-9142)Yury Selivanov2018-09-111-31/+11
| | | | | | | | | | | | | Rewritten/updated sections: * Event Loop APIs * Transports & Protocols * Streams * Exceptions * Policies * Queues * Subprocesses * Platforms
* bpo-34270: Make it possible to name asyncio tasks (GH-8547)Alex Grönholm2018-08-081-3/+33
| | | Co-authored-by: Antti Haapala <antti.haapala@anttipatterns.com>
* Fix typo introduced in GH-7217 (#7230)Elvis Pranskevichus2018-05-301-1/+1
|
* bpo-23859: Document that asyncio.wait() does not cancel its futures (#7217)Elvis Pranskevichus2018-05-291-0/+3
| | | | Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed futures when a timeout accurs.
* bpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216)Elvis Pranskevichus2018-05-291-1/+8
| | | | | | | | | | | | | | | | | | | | | | | Currently, asyncio.wait_for(fut), upon reaching the timeout deadline, cancels the future and returns immediately. This is problematic for when *fut* is a Task, because it will be left running for an arbitrary amount of time. This behavior is iself surprising and may lead to related bugs such as the one described in bpo-33638: condition = asyncio.Condition() async with condition: await asyncio.wait_for(condition.wait(), timeout=0.5) Currently, instead of raising a TimeoutError, the above code will fail with `RuntimeError: cannot wait on un-acquired lock`, because `__aexit__` is reached _before_ `condition.wait()` finishes its cancellation and re-acquires the condition lock. To resolve this, make `wait_for` await for the task cancellation. The tradeoff here is that the `timeout` promise may be broken if the task decides to handle its cancellation in a slow way. This represents a behavior change and should probably not be back-patched to 3.6 and earlier.
* bpo-32684: Fix gather to propagate cancel of itself with return_exceptions ↵Yury Selivanov2018-05-291-0/+4
| | | | (GH-7209)
* bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)Yury Selivanov2018-05-281-2/+5
|
* bpo-32436: Document PEP 567 changes to asyncio. (GH-7073)Yury Selivanov2018-05-231-2/+17
|
* bpo-32996: The bulk of What's New in Python 3.7 (GH-6978)Elvis Pranskevichus2018-05-201-1/+1
|
* asyncio/docs: Mark asyncio.run() as provisional in 3.7. (#6946)Yury Selivanov2018-05-171-0/+2
|
* Fix docs markup for asyncio current_task() and all_tasks() (#6089)Andrew Svetlov2018-03-121-2/+2
|
* Fix missing coroutine declaration in the asyncio documentation. (#5964)Joongi Kim2018-03-031-1/+1
|
* bpo-32415: Add asyncio.Task.get_loop() and Future.get_loop() (#4992)Yury Selivanov2017-12-231-0/+6
|
* bpo-32250: Implement asyncio.current_task() and asyncio.all_tasks() (#4799)Andrew Svetlov2017-12-161-0/+22
|
* bpo-32311: Implement asyncio.create_task() shortcut (#4848)Andrew Svetlov2017-12-151-4/+21
| | | | | * Implement functionality * Add documentation
* bpo-32314: Implement asyncio.run() (#4852)Yury Selivanov2017-12-141-9/+22
|
* bpo-32258: Replace 'yield from' to 'await' in asyncio docs (#4779)Andrew Svetlov2017-12-111-6/+6
| | | | | | * Replace 'yield from' to 'await' in asyncio docs * Fix docstrings
* bpo-32272: Remove asyncio.async() function. (#4784)Yury Selivanov2017-12-111-6/+0
|
* bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (#4319)Antoine Pitrou2017-11-071-1/+1
|
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-1/+1
|
* Add the link to asyncio source code in the docs (GH-2373)lf2017-07-251-0/+4
|
* bpo-24755: Document asyncio.wrap_future (GH-603)adisbladis2017-06-091-0/+5
|
* Issue #29441: Update examples to use async and await keywords in ↵Berker Peksag2017-02-071-17/+4
| | | | asyncio-task.rst
* Issue #29407: Remove redundant ensure_future() calls in factorial exampleBerker Peksag2017-02-011-8/+7
|
* Issue #19795: Improved more markups of True/False.Serhiy Storchaka2016-10-191-2/+2
|
* Issue #28348: Fix typo in asyncio.Task() documentationBerker Peksag2016-10-041-1/+1
| | | | Patch by Mariatta Wijaya.
* Issue #27700: Document AbstractEventLoop, not BaseEventLoop.Guido van Rossum2016-08-081-11/+11
|
* Use asyncio.gather instead of asyncio.wait in example.Andrew Svetlov2016-08-081-1/+1
| | | | | gather will raise exception in case of problem but wait just returns done and pending lists of futures. For getting error every future result should be retrieved, which is boring and error prone.
* asyncio: Remove asyncio.timeout() context manager.Yury Selivanov2016-06-081-16/+0
| | | | | | | It will probably be added back in Python 3.6, once its compatibility issues are resolved; see [1] for more details. [1] https://mail.python.org/pipermail/async-sig/2016-June/000045.html
* Fix typoZachary Ware2016-06-011-1/+1
|