Skip to content

Interactively Kill Async Tasks #295

@leimao

Description

@leimao

Thank you very much for making such a great contribution, @ronf. However, I do have a more general question related to asyncio and it is not specific to asyncssh. Using Python asyncio, I could easily set up five tasks and use asyncio.gather to create a new coroutine, and the single process single thread asynio will help me manage all the executions. If using Python threading, I could get future objects for each task and interactively check if the future is done or not. If it is taking too long, I can interactively kill the thread in the Python interactive interpreter. I feel using asyncio is less interactive and I could not control the task or the future just like how I controlled the similar correspondings using threading. Do you have any good suggestions? Thank you.

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