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

x/easyts/time/time.ts>Timer#reset

js library written with ts, use select and chan like golang in js.
Latest
method Timer.prototype.reset
import { Timer } from "https://deno.land/x/easyts@0.1.3/time/time.ts";

Reset changes the timer to expire after duration millisecond.

Parameters

ms: number

Returns

boolean

returns true if the timer had been active, false if the timer had expired or been stopped.