From 59a5a260c6b5fea0f39d724b23972da49af0f5d3 Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Sun, 20 Sep 2020 00:50:01 +0200 Subject: Improve docs --- src/runnable.rs | 4 ++-- 1 file 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`. -- cgit v1.2.3