Build small async services
npm i async-service-builder
yarn add async-service-builder
;;;serviceA; // runs every 5 secondsserviceB; // runs every 10 seconds
build(worker: () => Promise, timeout = 5000): () => Promise
Build a new service which pauses for
timeout between runs.
Won't crash when the worker throws.
It will terminate it self when the process exits.