revoke abstract method

void revoke([
  1. Object? reason,
  2. Duration? grace
])

Revokes the run (idempotent): new native entries are refused, accepted work continues. With grace, once it has elapsed capability use is refused for everything of the run and tracked tasks not started are cancelled.

Implementation

void revoke([Object? reason, Duration? grace]);