operations method

Future<List<Operation>> operations({
  1. String? nodeId,
  2. bool running = false,
})

Work dispatched with async: what is running, and how the last few went.

Implementation

Future<List<Operation>> operations({
  String? nodeId,
  bool running = false,
}) async => _list(
  await get(
    _query('/operations', {
      if (nodeId != null) 'node': [nodeId],
      if (running) 'running': ['true'],
    }),
  ),
  Operation.fromJson,
);