assertNotInProgress method

  1. @protected
void assertNotInProgress()

Asserts that the shutdown hook is not currently in progress.

Throws an IllegalArgumentException if the shutdown hook is already in progress.

Example:

hook.assertNotInProgress();

Implementation

@protected
void assertNotInProgress() {
  if (_inProgress) {
    throw IllegalArgumentException('Shutdown already in progress');
  }
}