你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PollerOptions interface
Options for long-running operations (pollers) in the Form Recognizer clients.
- Extends
Properties
on |
An optional initial progress handler that will be called when the poller state updates. This handler will be called once immediately after the poller state is initialized. |
resume |
A serialized poller state. If provided, the polling operation will be resumed from the given state instead of started as if it were a new operation. |
update |
The amount of time to wait (in milliseconds) between subsequent requests relating to the same operation. |
Inherited Properties
abort |
The signal which can be used to abort requests. |
on |
A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times. |
request |
Options used when creating and sending HTTP requests for this operation. |
serializer |
Options to override serialization/de-serialization behavior. |
tracing |
Options used when tracing is enabled. |
Property Details
onProgress
An optional initial progress handler that will be called when the poller state updates. This handler will be called once immediately after the poller state is initialized.
onProgress?: (state: TState) => void
Property Value
(state: TState) => void
resumeFrom
A serialized poller state. If provided, the polling operation will be resumed from the given state instead of started as if it were a new operation.
resumeFrom?: string
Property Value
string
updateIntervalInMs
The amount of time to wait (in milliseconds) between subsequent requests relating to the same operation.
updateIntervalInMs?: number
Property Value
number
Inherited Property Details
abortSignal
The signal which can be used to abort requests.
abortSignal?: AbortSignalLike
Property Value
Inherited From OperationOptions.abortSignal
onResponse
A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times.
onResponse?: RawResponseCallback
Property Value
Inherited From OperationOptions.onResponse
requestOptions
Options used when creating and sending HTTP requests for this operation.
requestOptions?: OperationRequestOptions
Property Value
Inherited From OperationOptions.requestOptions
serializerOptions
Options to override serialization/de-serialization behavior.
serializerOptions?: SerializerOptions
Property Value
Inherited From OperationOptions.serializerOptions
tracingOptions
Options used when tracing is enabled.
tracingOptions?: OperationTracingOptions
Property Value
Inherited From OperationOptions.tracingOptions