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

x/async_channels/time.ts>Ticker#reset

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Go to Latest
method Ticker.prototype.reset
import { Ticker } from "https://deno.land/x/async_channels@v1.0.0-alpha54/time.ts";

reset stops a ticker and resets its period to the specified duration. The next tick will arrive after the new period elapses.

Parameters

duration: number