Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-97696: asyncio eager tasks factory (#102853) | Itamar Ostricher | 2023-05-01 | 1 | -4/+6 |
| | | | | Co-authored-by: Jacob Bower <jbower@meta.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> | ||||
* | bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950) | Andrew Svetlov | 2022-03-17 | 1 | -0/+7 |
| | |||||
* | bpo-46752: Add TaskGroup; add Task..cancelled(),.uncancel() (GH-31270) | Guido van Rossum | 2022-02-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | asyncio/taskgroups.py is an adaptation of taskgroup.py from EdgeDb, with the following key changes: - Allow creating new tasks as long as the last task hasn't finished - Raise [Base]ExceptionGroup (directly) rather than TaskGroupError deriving from MultiError - Instead of monkey-patching the parent task's cancel() method, add a new public API to Task The Task class has a new internal flag, `_cancel_requested`, which is set when `.cancel()` is called successfully. The `.cancelling()` method returns the value of this flag. Further `.cancel()` calls while this flag is set return False. To reset this flag, call `.uncancel()`. Thus, a Task that catches and ignores `CancelledError` should call `.uncancel()` if it wants to be cancellable again; until it does so, it is deemed to be busy with uninterruptible cleanup. This new Task API helps solve the problem where TaskGroup needs to distinguish between whether the parent task being cancelled "from the outside" vs. "from inside". Co-authored-by: Yury Selivanov <yury@edgedb.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> | ||||
* | bpo-39764: Make Task.get_stack accept ag_frame (#18669) | Lidi Zheng | 2020-03-02 | 1 | -3/+10 |
| | | | | Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | bpo-34270: Make it possible to name asyncio tasks (GH-8547) | Alex Grönholm | 2018-08-08 | 1 | -2/+4 |
| | | | Co-authored-by: Antti Haapala <antti.haapala@anttipatterns.com> | ||||
* | bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775) | Yury Selivanov | 2017-12-10 | 1 | -7/+7 |
| | |||||
* | Issue #28544: Implement asyncio.Task in C. | Yury Selivanov | 2016-10-28 | 1 | -0/+76 |
This implementation provides additional 10-20% speed boost for asyncio programs. The patch also fixes _asynciomodule.c to use Arguments Clinic, and makes '_schedule_callbacks' an overridable method (as it was in 3.5). |