mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-01-25 07:47:52 +00:00
runtime: add comments to schedule_option_task_without_yield (#7851)
This commit is contained in:
@@ -1280,6 +1280,7 @@ impl Handle {
|
||||
});
|
||||
}
|
||||
|
||||
// Separated case to reduce LLVM codegen in `Handle::bind_new_task`.
|
||||
pub(super) fn schedule_option_task_without_yield(&self, task: Option<Notified>) {
|
||||
if let Some(task) = task {
|
||||
self.schedule_task(task, false);
|
||||
|
||||
Reference in New Issue
Block a user