Creates a future that resolves after a given time span.
the time span in ms after which the future resolves
Waits until either all futures are resolved or a given time span has passed.
the time span in ms after which waiting is aborted
the futures to be awaited
the list of optional future values
if timeout is negative,
or timeout +
System.currentTimeMillis() is negative.
Waits for the first result returned by one of two given futures.
the first future
the second future
the result of the future that resolves first
Arranges for the asynchronous execution of
returning a future representing the result.
the computation to be carried out asynchronously
the future representing the result of the computation