IUFQueueableAction defines the interface for an asynchronous action.

interface IUFQueueableAction {
    run(aToken): Promise<boolean>;
}

Implemented by

Methods

Methods

  • Runs the action asynchronously.

    Parameters

    • aToken: IUFCancellationToken

      A cancellation token which the action can check while running if the action still can continue.

    Returns Promise<boolean>

    true if the action was successful, false if the action failed or was cancelled.