checkInterrupt method

void checkInterrupt()

Check if execution should continue. See interrupt.

Implementation

void checkInterrupt() {
  Environment? env = this;
  while (env != null) {
    env.interrupt?.call();
    env = env.owner;
  }
}