Skip to content

tusharmath/ts-scheduler

Repository files navigation

ts-scheduler

Build Status npm

A job scheduler for node and browser environment

Index

Installation

npm:

npm i ts-scheduler --save

yarn:

yarn add ts-scheduler

Usage

import {scheduler} from 'ts-scheduler'

const cancellable = scheduler.asap(new Executable(() => console.log('Hi')))

cancellable.cancel() // immediately aborts and doesn't print any thing