Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aisk opened this issue Jul 3, 2024 · 0 comments
Closed

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

aisk opened this issue Jul 3, 2024 · 0 comments
Labels
docs Documentation in the Doc dir topic-asyncio

Comments

@aisk
Copy link
Contributor

aisk commented Jul 3, 2024

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

@aisk aisk added the docs Documentation in the Doc dir label Jul 3, 2024
@github-project-automation github-project-automation bot moved this to Todo in asyncio Jul 3, 2024
kumaraditya303 added a commit that referenced this issue Jul 9, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 9, 2024
…_in_executor (pythonGH-121335)

(cherry picked from commit facf986)

Co-authored-by: AN Long <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 9, 2024
…_in_executor (pythonGH-121335)

(cherry picked from commit facf986)

Co-authored-by: AN Long <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
kumaraditya303 added a commit that referenced this issue Jul 9, 2024
…n_in_executor (GH-121335) (#121525)

gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335)
(cherry picked from commit facf986)

Co-authored-by: AN Long <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
kumaraditya303 added a commit that referenced this issue Jul 9, 2024
…n_in_executor (GH-121335) (#121526)

gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335)
(cherry picked from commit facf986)

Co-authored-by: AN Long <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
@aisk aisk closed this as completed Jul 9, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in asyncio Jul 9, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this issue Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-asyncio
Projects
Status: Done
Development

No branches or pull requests

2 participants