Skip to content

asyncio.Queue.shutdown talks about threads? Copy-and-paste error from queue.Queue? #142876

@zuckerruebe

Description

@zuckerruebe

Documentation

The documentation for the asyncio.Queue.shutdown method says (emphasis mine)

The queue can no longer grow. Future calls to put() raise QueueShutDown. Currently blocked callers of put() will be unblocked and will raise QueueShutDown in the formerly blocked thread.

I'm doubtful whether it should be talking about threads here and not about concepts from asyncio, Task possibly? I wonder whether that's a copy-paste-error from the queue.Queue documentation.

Cheers,
Damian

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions