Skip to main content
Deno 2 is finally 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.220.1/testing/time.ts";

Resolves after the given number of milliseconds using real time.

Parameters

ms: number
optional
options: DelayOptions = [UNSUPPORTED]

Returns

Promise<void>