pendingLiveCallsSnapshot static method

Future<void>? pendingLiveCallsSnapshot()

Captures the live calls already in flight at this boundary.

The returned future does not include calls started after the snapshot.

Implementation

static Future<void>? pendingLiveCallsSnapshot() {
  final calls = _currentAttemptCalls.toList();
  if (calls.isEmpty) return null;
  return Future.wait(calls);
}