Skip to content

swap the stream contexts with the taskgroup context #27

@graingert

Description

@graingert
        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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions