A method that will try to cancel the underlying operation.
A method that will return the state of the operation. TState can be a different type than the underlying operation's TState.
A method that will return the result value of the operation, regardless of the state of the poller. It can return undefined or an incomplete form of the final TResult value depending on the implementation.
A method that will return true if the poller has finished polling.
A method that will return true if the poller is stopped.
A method used by the poller operation to report updates.
A method that defines under what conditions to reach out to the underlying service. It should call the operation's update method.
A method that will return a promise that will resolve once the underlying operation is completed.
A method that will stop the poller from continuing to poll.
A method intended to return a serialized version of the poller.
Generated using TypeDoc
Abstract representation of a poller, intended to expose just the minimal that the user needs to work with.
This edit of the original interface changes getOperationState() to return TState, which helps to expose any re-interpretation of the state of the operation being polled, such as only publicly available properties.