task.yield¶ task.yield() Yield to the runtime, allowing other tasks to make progress before resuming. Useful inside long-running CPU loops to avoid starving other tasks on the same executor thread.