Function createSendPollRequest
- createSendPollRequest<TOptions, TClient>(settings: {
client: TClient;
options: TOptions;
spec: OperationSpec;
}): ((path: string) => Promise<LroResponse<unknown>>)
-
Type Parameters
-
TOptions extends OperationOptions
-
TClient extends ServiceClient
Parameters
-
settings: {
client: TClient;
options: TOptions;
spec: OperationSpec;
}
-
client: TClient
-
options: TOptions
-
spec: OperationSpec
Returns ((path: string) => Promise<LroResponse<unknown>>)
-
- (path: string): Promise<LroResponse<unknown>>
-
Returns Promise<LroResponse<unknown>>
Helper function to create a method that can be passed to sendPollRequest in createHttpPoller.
Returns
A callback that accept the path as input and return the promise of Lro response.