OperationState interface

While the poller works as the local control mechanism to start triggering and wait for a long-running operation, OperationState documents the status of the remote long-running operation. It gets updated after each poll.

Properties

error

Will exist if the operation encountered any error.

result

Will exist if the operation produced a result of the expected type.

status

The current status of the operation.

Property Details

error

Will exist if the operation encountered any error.

error?: Error

Property Value

Error

result

Will exist if the operation produced a result of the expected type.

result?: TResult

Property Value

TResult

status

The current status of the operation.

status: OperationStatus

Property Value