exec<R> method

  1. @override
R exec<R>(
  1. R block()
)
override

Implementation

@override
R exec<R>(R block()) {
  if (isShuttingDown()) {
    log.severe("Trying to invoke function while shutting down", null,
        StackTrace.current);
    return null as R;
  } else {
    return block();
  }
}