(await awaitable)(await awaitable ms)Blocks until the awaitable reference is done. Optionally awaits for up to 'ms' milliseconds, throwing a TimeoutException once time is up.
Blocks until the awaitable reference is done. Optionally awaits for up to 'ms' milliseconds, throwing a TimeoutException once time is up.
(completed? fut)Returns true when this future has been completed with a value or an exception. False otherwise
Returns true when this future has been completed with a value or an exception. False otherwise
(filter fut pred)Applies pred to the value of this Future. The new Future will contain a value of type success if (pre value) is true. It will contain a Failure wrapping a NoSuchElementException otherwise
Applies pred to the value of this Future. The new Future will contain a value of type success if (pre value) is true. It will contain a Failure wrapping a NoSuchElementException otherwise
(on-complete fut f)applies f to a value of type 'IResult' once this future completes
applies f to a value of type 'IResult' once this future completes
(on-failure fut f)applies f to the result of this future iff it completes with a failure
applies f to the result of this future iff it completes with a failure
(on-success fut f)applies f to the result of this future iff it completes successfully
applies f to the result of this future iff it completes successfully
(zip fut other)Zips this future with 'other'. Resturns a new Future containing a two-element vector representing the result of each Future.
Zips this future with 'other'. Resturns a new Future containing a two-element vector representing the result of each Future.
(->future promise)Returns a Future backed by this promise
Returns a Future backed by this promise
(complete promise value)Completes this promise with the given value
Completes this promise with the given value
(failure? this)(map-failure this f)applies the supplied function to the internal value only if it is a Failure type
applies the supplied function to the internal value only if it is a Failure type
(success? this)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |