Skip to content

concurrent.futures.Future.add_done_callback: calling thread description error. #122676

@nanoric

Description

@nanoric

asyncio.run_coroutine_threadsafe will return a concurrent.futures.Future.
And according to its doc concurrent.futures.Future.add_done_callback() :

Added callables are called in the order that they were added and are always ** called in a thread belonging to the process that added them. **

But acually, the callback is called in where Future.set_result() is called according to its source.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions