Home / cs-notes / Language / Java / Concurrent / Code / Future / CompletableFuture / result
volatile Object result; // Either the result or boxed AltResult
final boolean internalComplete(Object r) { // CAS from null to r
return UNSAFE.compareAndSwapObject(this, RESULT, null, r);
}