import { randomInterval, ClearInterval } from "./mod.ts";
const i: ClearInterval = randomInterval(() => {
console.log("foo");
}, 50); // will prompt randomly foo in the console every 0-50ms
setTimeout(i.clear, 1000); // clear the interval after 1second
-
Notifications
You must be signed in to change notification settings - Fork 0
Generates random interval
License
zekth/deno_random_interval
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Generates random interval
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published