You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When send_deferred sees a task to wake up it calls enqueue_blocked_task to reschedule the work, but enqueue_blocked_task assumes that some other scheduler will come along to steal the work. For tasks spawned with SingleThreaded scheduling though, the scheduler doesn't participate in work stealing, so if the task then goes on to block, the other task will never wake up.
The text was updated successfully, but these errors were encountered:
fix [`needless_return`] incorrect suggestion when returning if sequence
fixes: rust-lang#10049
---
changelog: [`needless_return`]: fix incorrect suggestion on if sequence
When
send_deferred
sees a task to wake up it callsenqueue_blocked_task
to reschedule the work, butenqueue_blocked_task
assumes that some other scheduler will come along to steal the work. For tasks spawned withSingleThreaded
scheduling though, the scheduler doesn't participate in work stealing, so if the task then goes on to block, the other task will never wake up.The text was updated successfully, but these errors were encountered: