Utility to create and wait for multiple callback and call a final one after every other callback has been called.

Constructor

new(onComplete:() ‑> Void)

Variables

read onlypending:Int

Get the number of callbacks still pending

read onlycomplete:Bool

Check if all callbacks have completed

Methods

callback():() ‑> Void

Create a new callback to wait for. Returns a function that should be called when this particular task is done.