Package version:

Function createSendPollRequest

  • 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.

    Type Parameters

    • TOptions extends OperationOptions

    • TClient extends ServiceClient

    Parameters

    • settings: {
          client: TClient;
          options: TOptions;
          spec: OperationSpec;
      }

      The settings of the poll request, including client, options and the spec

      • client: TClient
      • options: TOptions
      • spec: OperationSpec

    Returns ((path: string) => Promise<LroResponse<unknown>>)

      • (path: string): Promise<LroResponse<unknown>>
      • Parameters

        • path: string

        Returns Promise<LroResponse<unknown>>

Generated using TypeDoc