reconcileAsync method

Future<Operation> reconcileAsync(
  1. String id, {
  2. bool dryRun = false,
  3. bool purgeAdopted = false,
})

Dispatches the same work, returning a handle instead of an answer.

Implementation

Future<Operation> reconcileAsync(
  String id, {
  bool dryRun = false,
  bool purgeAdopted = false,
}) async => Operation.fromJson(
  await _object(
    await post('/nodes/$id/reconcile', {
      if (dryRun) 'dryRun': true,
      if (purgeAdopted) 'purgeAdopted': true,
      'async': true,
    }),
  ),
);