deref
(deref ref)
Reads an atom or volatile, the value inside a reduced, a var's root, a delay's value (its body run the first time), or a future/future-call future's value or a promise's once delivered (either blocks until it can answer, like the oracle's). The reader form @x is the same operation. Works as a function
value, so map/reduce take it bare (one argument there).
On the interpreter and the JVM, a Java java.util.concurrent.Future from interop is read through its get, so a failed one signals ExecutionException and a cancelled one CancellationException. (deref f ms timeout-val) is get within ms milliseconds and answers timeout-val on TimeoutException; with any value that is no Future it signals ClassCastException (nil: NullPointerException), as the oracle's IBlockingDeref cast does. The future the HTTP client answers under :async true is read the same way on every backend: its response, a failure as ExecutionException, and within ms with the three arguments.