exec<R> method
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();
}
}