swap the stream contexts with the taskgroup context
See original GitHub issue with send_channel, receive_channel:
async with anyio.create_task_group() as task_group:
might be better as
async with anyio.create_task_group() as task_group:
with send_channel, receive_channel:
this way closing the amap context manager (None, None, None)ly would allow currently running tasks to finish, and prevent new tasks being added. Closing the amap context manager (type[T], T, tb)ly would still cancel all tasks
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
TaskGroup | Apple Developer Documentation
A group that contains dynamically created child tasks. iOS 13.0+ iPadOS 13.0+ macOS 10.15+ Mac Catalyst 13.0+ ...
Read more >Airflow task groups | Astronomer Documentation
Follow Astronomer's step-by-step guide to use task groups for organizing tasks within the graph view of the Airflow user interface.
Read more >Airflow TaskGroups: All you need to know! - Marc Lamberti
Airflow TaskGroups provide a way to group your tasks and make your DAGs cleaner. ... Context Manager; Dynamically Generating Task Groups; Task Group...
Read more >Enhancing the Effectiveness of Work Groups and Teams
Team self-correction training focuses on skills relevant to (a) event review (following a task episode), (b) error identification, (c) feedback exchange, and (d) ......
Read more >Report of the PCC Ad Hoc Task Group on Gender in Name ...
Background. On August 1, 2016 an ad hoc task group was formed to address concerns raised by the. Program for Cooperative Cataloging (PCC) ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@florimondmanca looking for a soft-cancel approach for @pfmoore here https://github.com/agronholm/anyio/discussions/333#discussioncomment-960478
also anyio 3 supports taskgroup.start so you can limit tasks with: