forked from mirror/async-std
add doc comment for join handle drop behavior
This commit is contained in:
parent
e060326910
commit
127feb47f9
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ impl fmt::Debug for Task {
|
|||
|
||||
/// A handle that awaits the result of a task.
|
||||
///
|
||||
/// Dropping a [`JoinHandle`] will detach the task, meaning that there is no longer
|
||||
/// a handle to the task and no way to `join` on it.
|
||||
///
|
||||
/// Created when a task is [spawned].
|
||||
///
|
||||
/// [spawned]: fn.spawn.html
|
||||
|
|
Loading…
Reference in a new issue