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:
bors[bot] 2019-09-14 21:46:00 +00:00 committed by GitHub
commit ff9437d401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,9 @@ impl fmt::Debug for Task {
/// A handle that awaits the result of a 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]. /// Created when a task is [spawned].
/// ///
/// [spawned]: fn.spawn.html /// [spawned]: fn.spawn.html