ifActive<R> method

R? ifActive<R>(
  1. R exec()
)
inherited

Implementation

R? ifActive<R>(R exec()) {
  if (_isActive) {
    return exec();
  } else {
    _log.warning(
        "Skipping exec for ${this.runtimeType} because we were shutting down");
    return null;
  }
}