@Deprecated
	public final boolean awaitAndShutdown(long timeout, TimeUnit timeUnit) {
    """
	Block until all submitted tasks have completed, then do a normal {@code EventLoopProcessor#dispose()}.
	@param timeout the timeout value
	@param timeUnit the unit for timeout
	@return if the underlying executor terminated and false if the timeout elapsed before termination
	@deprecated use {@link #awaitAndShutdown(Duration)} instead
    """
		try {
			shutdown();
			return executor.awaitTermination(timeout, timeUnit);
		} catch (InterruptedException ie) {
			Thread.currentThread().interrupt();
			return false;
		}
	}
@Deprecated
	public final boolean awaitAndShutdown(long timeout, TimeUnit timeUnit) {
		try {
			shutdown();
			return executor.awaitTermination(timeout, timeUnit);
		} catch (InterruptedException ie) {
			Thread.currentThread().interrupt();
			return false;
		}
	}
@ Deprecated public final boolean awaitAndShutdown ( long timeout , TimeUnit timeUnit ) { try { shutdown ( ) ; return executor . awaitTermination ( timeout , timeUnit ) ; } catch ( InterruptedException ie ) { Thread . currentThread ( ) . interrupt ( ) ; return false ; } }
Block until all submitted tasks have completed, then do a normal {@code EventLoopProcessor#dispose()}.
@param timeout the timeout value
@param timeUnit the unit for timeout
@return if the underlying executor terminated and false if the timeout elapsed before termination
@deprecated use {@link #awaitAndShutdown(Duration)} instead
Block until all submitted tasks have completed then do a normal {