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

x/mock/time.ts>FakeTime#nextAsync

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

Runs all pending microtasks then advances time to when the next scheduled timer is due. If there are no pending timers, time will not be changed.

Returns

Promise<boolean>