Skip to content

Add extension methods for each LRO type to OperationExtensions #11117

@annelo-msft

Description

@annelo-msft

We currently have a single extension method for retrieving the result directly from an LRO, without having to use more complicated LRO patterns:

public static ValueTask<Response<IReadOnlyList<RecognizedReceipt>>> WaitForCompletionAsync(this Task<RecognizeReceiptsOperation> operation, CancellationToken cancellationToken = default);

See this thread for discussion.

We will add one such extension method for each of the LRO methods in both FormRecognizerClient and FormTrainingClient.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions