Use this when you have a function that creates and returns a child process, and you want that process to be killed and recreated on successive calls so that there is only one process.
npm install exclusive-process
const exclusiveProcess =const fn =const exclusiveFn =// start process// kill running process and start again
fn: functiona function that creates and returns a child process
functiona function that calls
fnafter killing the process from the previous call. Arguments are passed through to