Skip to content

Commit

Permalink
Fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Aug 21, 2022
1 parent d4b4362 commit 9453ba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/yew/src/platform/rt_tokio/mod.rs
Expand Up @@ -142,10 +142,10 @@ mod tests {

runtime.spawn_pinned(move || async move {
tokio::task::spawn(async move {
// tokio::task::spawn_local cannot spawn within a Send task.
// tokio::task::spawn_local cannot spawn tasks outside of a local context.
//
// yew::platform::spawn_local can spawn within a Send task as long as runnting under
// a Yew Runtime.
// yew::platform::spawn_local can spawn tasks within a Send task as long as running
// under a Yew Runtime.
spawn_local(async move {
tx.send(()).expect("failed to send!");
})
Expand Down

0 comments on commit 9453ba7

Please sign in to comment.