/** * Closes this {@link TaskScheduler}, ensuring that new tasks cannot be created * and cancelling existing tasks. * * @throws IOException if an I/O error occurs */ @Override @Synchronized public final void close() throws IOException { if (this.isStarted) { this.isStarted = false; this.closeImpl(); } }
/** * Closes this {@link TaskScheduler}, ensuring that new tasks cannot be created * and cancelling existing tasks. * * @throws IOException if an I/O error occurs */ @Override @Synchronized public final void close() throws IOException { if (this.isStarted) { this.isStarted = false; this.closeImpl(); } }