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

x/easyts/time/time.ts>afterFunc

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

waits for the duration to elapse and then calls callback

Parameters

ms: number

It returns a Timer that can be used to cancel the call using its Stop method.

callback: ValueCallback<Date>