abort method

Future<SnapshotStatus?> abort(
  1. String snapshotId, {
  2. Map<String, dynamic>? context,
})

Aborts a running snapshot. Requires a server store. Returns the status after the attempt (a pending row reads back as aborting; an already-settled row returns its terminal status), or null when the snapshot does not exist.

Implementation

Future<SnapshotStatus?> abort(
  String snapshotId, {
  Map<String, dynamic>? context,
}) async => (await abortAgentAction(
  AgentAbortRequest(snapshotId: snapshotId),
  context: context,
)).status;