code: @Weight(value = Weight.Unit.VARIABLE, comment = "Depends on the current call stack depth")
    public static void cancelDeferredActions() {
      final int stackDepth = ThreadUtils.stackDepth();
  
      final List<Deferred> list = REGISTRY.get();
  
      list.removeIf(deferred -> deferred.getStackDepth() >= stackDepth);
      if (list.isEmpty()) {
        REGISTRY.remove();
      }
    }
docs: Cancel all defer actions for the current stack depth.
  
  @since 1.0