Skip to content

Clarify what is the default executor for asyncio.run_in_executor #121333

Closed
@aisk

Description

@aisk

Documentation

The document of asyncio said:

The *executor* argument should be an :class:`concurrent.futures.Executor`
instance. The default executor is used if *executor* is ``None``.

But it dosn't mention that what is the default executor, like if it's ThreadPoolExecutor or ProcessPoolExecutor.

Someone on stackoverflow got the same question: https://stackoverflow.com/questions/60204054/default-executor-asyncio

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions