The current normalized task progress from 0 to 1. Task
groups report the average progress of their constituent
tasks. Successful tasks report 1 after settlement; failed or
cancelled tasks retain their last observed progress.
ReadonlyBetapromise
promise:Promise<void>
Remarks
The promise that resolves when the task completes. If
cancellation is accepted, the promise rejects with a
TaskCancelledError.
Methods
cancel
cancel():void
Beta
Returns void
Remarks
Requests cancellation of the task. Calling this method more
than once, or after the task has settled, has no effect.
Privilege
no-restricted-execution - This function can't be called in restricted-execution mode.
Represents a cancellable Editor task that does not produce a result value.