Skip to main content
Module

x/async_channels/src/mod.ts>time.Ticker#reset

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

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