diff options
author | Stjepan Glavina <stjepang@gmail.com> | 2020-09-20 00:50:01 +0200 |
---|---|---|
committer | Stjepan Glavina <stjepang@gmail.com> | 2020-09-20 00:50:01 +0200 |
commit | 59a5a260c6b5fea0f39d724b23972da49af0f5d3 (patch) | |
tree | b200ec04eb0be9c77634f7c7b49e2903c938b876 | |
parent | fcf660b67f4c7ca8b89175a614ea66e833189940 (diff) | |
download | async-task-59a5a260c6b5fea0f39d724b23972da49af0f5d3.tar.gz |
Improve docs
-rw-r--r-- | src/runnable.rs | 4 |
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`. |