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

std/testing/time.ts>FakeTime#next

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

Advances time to when the next scheduled timer is due. If there are no pending timers, time will not be changed. Returns true when there is a scheduled timer and false when there is not.

Returns

boolean