A simple action to call a callback when run.

Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

Accessors

  • get progress(): number
  • The progress, a value between 0.0 and 1.0 (inclusive).

    Returns number

  • get progressWeight(): number
  • Gets the progress weight.

    Returns number

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.