deno.com

namespace promises

The timers/promises API provides an alternative set of timer functions that return Promise objects. The API is accessible via require('node:timers/promises').

import {
  setTimeout,
  setImmediate,
  setInterval,
} from 'node:timers/promises';

Functions #

f
promises.setImmediate
No documentation available
    f
    promises.setInterval

    Returns an async iterator that generates values in an interval of delay ms. If ref is true, you need to call next() of async iterator explicitly or implicitly to keep the event loop alive.

      f
      promises.setTimeout
      No documentation available

        Interfaces #

        I
        promises.Scheduler
        No documentation available

        Variables #

        v
        promises.scheduler
        No documentation available

          See #