public CompletableFuture<T> orTimeout (long timeout, TimeUnit unit)

Exceptionally completes this CompletableFuture with a TimeoutException if not otherwise completed before the given timeout.

Parameters:
timeout    how long to wait before completing exceptionally with a TimeoutException, in units of unit
unit    a TimeUnit determining how to interpret the timeout parameter

Returns:  this CompletableFuture

Since:  9