Skip to content

Document behaviour of dropping JoinHandle #143

Closed
@Nemo157

Description

@Nemo157

It appears that dropping an async_std::task::JoinHandle will currently detach the task and allow it to keep running. Presumably this is intended behaviour in order to match std::thread::JoinHandle, it should probably be documented with a paragraph like that from std:

A JoinHandle detaches the associated thread when it is dropped, which means that there is no longer any handle to thread and no way to join on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions