I'm using async for my async tasks and have 2 scenarios where a stop method would be helpful:
- I already know when the tasks are done and don't want to listen to
multiprocess for done (so I can have 1 function to handle next case)
- Tasks are cancelled due to an fail fast error
- I need to be able to log an error without worry of it being overwritten by a pending
setTimeout
This should be plausible via a stop method which runs clearTimeout and loop()'s success case (i.e. this.update.done();)
I'm using
asyncfor my async tasks and have 2 scenarios where astopmethod would be helpful:multiprocessfordone(so I can have 1 function to handle next case)setTimeoutThis should be plausible via a
stopmethod which runsclearTimeoutandloop()'s success case(i.e.this.update.done();)