Future but without any options for
cancellation or returning a result. Indeed, you cannot even precisely tell
if the task has already completed, but the await methods will return
immediately if that is the case.
Pool#shutdown()
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: `true` if the task represented by this completion completed within the specified waiting time, or was already complete upon entry to this method; or `false` if the specified Timeout elapsed before the task could finished.The timeout delimiting the maximum time to wait for the
task to complete. Timeouts with zero or negative values will cause the
method to return immediately. timeout)Causes the current thread to wait until the completion is finished,
or the thread is |
| await | back to summary |
|---|---|
| public boolean await(Timeout timeout) throws InterruptedException Causes the current thread to wait until the completion is finished,
or the thread is
| |