callSingleWithLazyPayload method

Future<Result> callSingleWithLazyPayload(
  1. String procedure, {
  2. required LazyMessagePayload payload,
  3. CallOptions? options,
  4. Completer<String>? cancelCompleter,
})

This calls a procedure with a LazyMessagePayload and waits for the final non-progressive Result.

Implementation

Future<Result> callSingleWithLazyPayload(
  String procedure, {
  required LazyMessagePayload payload,
  CallOptions? options,
  Completer<String>? cancelCompleter,
}) async {
  final result = await callSingleLazyPayloadView(
    procedure,
    payload: payload,
    options: options,
    cancelCompleter: cancelCompleter,
  );
  return resultFromLazyPayload(result);
}