Liking cljdoc? Tell your friends :D

imminent.protocols


IAwaitablecljprotocol

awaitclj

(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.

IFuturecljprotocol

completed?clj

(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

filterclj

(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-completeclj

(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-failureclj

(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-successclj

(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

zipclj

(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.

IPromisecljprotocol

->futureclj

(->future promise)

Returns a Future backed by this promise

Returns a Future backed by this promise

completeclj

(complete promise value)

Completes this promise with the given value

Completes this promise with the given value

IReturncljprotocol

failure?clj

(failure? this)

map-failureclj

(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?clj

(success? this)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close