Skip to content

Howto: Wait for currently executing tasks to complete #96

@chrisinwork

Description

@chrisinwork

I'm looking to do the following:

  1. Pause the queue.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions