I'm looking to do the following:
- Pause the queue.
- Wait for the currently executing items to finish.
The problem seems to be that if new items are added after pausing onIdle doesn't seem to resolve.
It seems that PQueue should be able to return a promise that resolves when there's nothing pending.
Like say OnGrounded.