stop static method

bool stop()

Asks the running playbook to stop at its next wait.

The remaining steps are reported as skipped and tearDown still runs. Returns false when nothing is running.

Implementation

static bool stop() {
  final PlaybookSession? session = _active;
  if (session == null) return false;
  session.stopRequested = true;
  return true;
}