Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/testing/time.ts>FakeTime#delay

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method FakeTime.prototype.delay
import { FakeTime } from "https://deno.land/std@0.172.0/testing/time.ts";

Resolves after the given number of milliseconds using real time.

Parameters

ms: number
optional
options: DelayOptions = [UNSUPPORTED]

Returns

Promise<void>