Whirlwinds
Dependecy-less micro library for timed functions based on the amazing work done by bjoerge with repeat a lustrum ago.
Warning
This is a work in progress. The API is likely to be changed.
Installation
npm install whirlwinds
Usage
Sleep
const sleep ={consoleawaitconsole}
Repeat
Basic example:
const repeat =const target = console
If things get serious, Whirlwinds allows you to pause and resume the execution of target the function whenever you feel is more convenient:
const repeat =const pause resume stop =// pausing...// ...// resuming...
Licence
M.I.T.