runtime: add comments to schedule_option_task_without_yield (#7851)

This commit is contained in:
IgorErin
2026-01-13 21:56:50 +03:00
committed by GitHub
parent 7a2135f426
commit 7ed6da6733

View File

@@ -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);