General
Pooli allows you to run tasks on timer based pool and make them done on each interval
Install
npm i pooli -S
Usage
Normal usage
const Pool = ; // Initiate the pool to tick and look for tasks every 1000msconst pool = interval: 1000 ; // Start the pool (start the timer)poolstart; pool
Stop the pool
const Pool = ; // Initiate the pool to tick and look for tasks every 1000msconst pool = interval: 1000 ; // Start the pool (start the timer)poolstart; pool
Dispose the pool
const Pool = ; // Initiate the pool to tick and look for tasks every 1000msconst pool = interval: 1000 ; // Start the pool (start the timer)poolstart; pool