Interface Future<V>

Type Parameters:
V - the value type
All Known Implementing Classes:
CompletableFuture

public interface Future<V>
java.util.concurrent.Future, which the class library does not carry. Only the five methods a CompletableFuture implements are here; the default methods Java 19 added are not.
Since:
1.0.3
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    cancel(boolean mayInterruptIfRunning)
     
    get()
    Suspends the caller until the future is done.
    get(long timeout, TimeUnit unit)
     
    boolean
    Returns whether the future was cancelled.
    boolean
    Returns whether the future has a result, a failure or was cancelled.
  • Method Details