See: Description
Interface | Description |
---|---|
CompletableFuture.AsynchronousCompletionTask |
A marker interface identifying asynchronous tasks produced by
async methods. |
CompletionStage<T> |
A stage of a possibly asynchronous computation, that performs an
action or computes a value when another CompletionStage completes.
|
Class | Description |
---|---|
CompletableFuture<T> |
A
Future that may be explicitly completed (setting its
value and status), and may be used as a CompletionStage ,
supporting dependent functions and actions that trigger upon its
completion. |
Exception | Description |
---|---|
CompletionException |
Exception thrown when an error or other exception is encountered
in the course of completing a result or task.
|
synchronized
and volatile
constructs, as well as the Thread.start()
and
Thread.join()
methods, can form happens-before relationships.
In particular:
synchronized
block or method exit) of a monitor
happens-before every subsequent lock (synchronized
block or
method entry) of that same monitor. And because the happens-before
relation is transitive, all actions of a thread prior to unlocking
happen-before all actions subsequent to any thread locking that
monitor.
volatile
field happens-before every
subsequent read of that same field. Writes and reads of volatile
fields have similar memory consistency effects as entering and exiting
monitors, but do not entail mutual exclusion locking.
start
on a thread happens-before any action in
the started thread.
join
on that thread.
Copyright © 2021. All rights reserved.