resumePaused method

Future<void> resumePaused(
  1. QueryClient client
)

Continues all cached mutations paused by network or scope constraints.

Implementation

Future<void> resumePaused(QueryClient client) async {
  await Future.wait<void>(
    _mutations.where((mutation) => mutation.state.isPaused).map((
      mutation,
    ) async {
      try {
        await mutation.continueExecution();
      } on Object {
        // The mutation state retains the failure for its observer.
      }
    }),
  );
}