import { after } from "https://deno.land/x/async_channels@v1.0.0-alpha54/time.ts";
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.