forked from mirror/async-std
Merge #194
194: Add doc comment for JoinHandle drop behavior r=stjepang a=nonnontrivial fixes #143 Co-authored-by: Kevin Donahue <nonnontrivial@gmail.com>
This commit is contained in:
commit
ff9437d401
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