Skip to main content
Scheduler.yield - node__timers--promises.d.ts - Node documentation
property Scheduler.yield
Unstable

Usage in Deno

```typescript import { type Scheduler } from "node:node__timers--promises.d.ts"; ```
An experimental API defined by the [Scheduling APIs](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking) 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>