aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/runnable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runnable.rs b/src/runnable.rs
index 8faa412..b26e32e 100644
--- a/src/runnable.rs
+++ b/src/runnable.rs
@@ -50,7 +50,7 @@ where
unsafe { spawn_unchecked(future, schedule) }
}
-/// Creates a new local task.
+/// Creates a new thread-local task.
///
/// This function is same as [`spawn()`], except it does not require [`Send`] on `future`. If the
/// [`Runnable`] is used or dropped on another thread, a panic will occur.
@@ -141,7 +141,7 @@ where
unsafe { spawn_unchecked(future, schedule) }
}
-/// Creates a new task without [`Send`] or `'static` bounds.
+/// Creates a new task without [`Send`], [`Sync`], and `'static` bounds.
///
/// This function is same as [`spawn()`], except it does not require [`Send`], [`Sync`], and
/// `'static` on `future` and `schedule`.