A job scheduler for node and browser environment
npm:
npm i ts-scheduler --save
yarn:
yarn add ts-scheduler
import {scheduler} from 'ts-scheduler'
const cancellable = scheduler.asap(new Executable(() => console.log('Hi')))
cancellable.cancel() // immediately aborts and doesn't print any thing
Generated using TypeDoc