Comments (4)
I suspect the real lesson here is that nobody is using TaskGroup.start()
in this way, which is why I'm the only person reporting cancellation issues with it. (Even I don't use it in this way, I've just been testing it for completeness.) Usually, you would call await tg.start(foo)
on the immediately enclosing TaskGroup, so the task start and the task main run would be in the same one. So feel free to close or ignore this; I'm just posting it in case of interest.
from anyio.
Related Issues (20)
- Opening a CancelScope with shield=True also shields sibling tasks on asyncio backend HOT 15
- Backend specific options don't appear to be used HOT 7
- Backend options `use_uvloop` throws import error on test runner if `uvloop` is not installed HOT 7
- sent_count, received_count for MemoryObjectStreamStatistics HOT 1
- Anyio run with pytest but wasn't asked for it HOT 6
- Don't wrap exceptions in `ExceptionGroup` if only one exception is raised on Python<3.11 HOT 10
- `run_process` with `fail_after` causes RuntimeError on timeout
- `ClosedResourceError` vs. `BrokenResourceError` is sometimes backend-dependent, and is sometimes not raised at all (in favor of a non-AnyIO exception type)
- Add `deliver_cancel` parameter and `start` support to `run_process`
- Suspicion of flaky test: test_cancelscope_propagation_when_abandoned HOT 1
- Stricter typing for `TaskGroup.start()` HOT 1
- [pytest] support keeping event loop for higher scope HOT 10
- Restore signal handlers at the end of `open_signal_receiver`. HOT 3
- service name not available for the specified socket type HOT 19
- RuntimeError when using Ctrl+C while awaiting a task using `await TaskGrup.start()` HOT 5
- 100% CPU load after cancel HOT 13
- run_process fails when running from .exe console_script entrypoint on windows HOT 2
- Different cancel scope behaviour on asyncio vs Trio HOT 2
- Hypothesis tests that are class members are passed self twice HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anyio.