Skip to content
Generates random interval
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.eslintrc.json initial commit May 9, 2019
.gitignore
.travis.yml update ci May 9, 2019
LICENSE Initial commit May 9, 2019
README.md Update README.md May 13, 2019
mod.ts
tsconfig.json

README.md

deno random interval Build Status

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
You can’t perform that action at this time.