Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mock/time.ts>FakeTime#delay

Utilities to help mock behavior, spy on function calls, stub methods, and fake time for tests.
Very Popular
Latest
method FakeTime.prototype.delay
import { FakeTime } from "https://deno.land/x/mock@0.15.2/time.ts";

Resolves after the given number of milliseconds using real time.

Parameters

ms: number
optional
options: DelayOptions = [UNSUPPORTED]

Returns

Promise<void>