dispose method

void dispose()

Drop every pending decision (mission / agent-loop teardown). Each pending decision is cancelled, completing its future with null; the whenComplete callback then removes it from pending.

Implementation

void dispose() {
  for (final d in List.of(_pending)) {
    d.cancel();
  }
}