import { time } from "https://deno.land/x/async_channels@v1.0.0-rc8/mod.ts";
const { after } = time;
after
waits for the duration to elapse and then sends the current time on the returned channel.
It is equivalent to (new Timer(d)).c
.
If efficiency is a concern, use new Timer()
instead and call Timer.stop
if the timer is no longer needed.