I have an async process. There's something that I want to do once the process is done. It's a non-critical task. Meaning, it's ok if the task doesn't get done.
I was thinking that I would use awaitility to check for up to 1 second to see if the process is done and then perform the task.
If it's not done in a second and the task is never performed - no big deal.
What do you think of using awaitility in a production setting?
The alternative, is to use a typical polling loop that iterates 10 times with a 100ms sleep in it if the process is not done.
Thanks,
Micah