Scheduler.yield - Node documentation
property Scheduler.yield
Unstable

Usage in Deno

import { type Scheduler } from "node:timers/promises";

An experimental API defined by the Scheduling APIs draft specification being developed as a standard Web Platform API. Calling timersPromises.scheduler.yield() is equivalent to calling timersPromises.setImmediate() with no arguments.

Type

() => Promise<void>