Liking cljdoc? Tell your friends :D

imminent.future


blocking-futurecljmacro

(blocking-future & body)

Dispatches body on a separate thread and returns a future that will eventually contain the result. body may block. See future-call

Dispatches `body` on a separate thread and returns a future that will eventually contain the result. `body` may block.
See `future-call`
raw docstring

blocking-future-callclj

(blocking-future-call task)

Dispatches task on a separate thread and returns a future that will eventually contain the result of task. task may block.

Dispatches `task` on a separate thread and returns a future that will eventually contain the result of `task`.
`task` may block.
raw docstring

const-futureclj

(const-future v)

Creates a new future and immediately completes it successfully with v

Creates a new future and immediately completes it successfully with `v`
raw docstring

failed-futureclj

(failed-future e)

filter-futureclj

pred? needs to return a Future that yields a boolean. Returns a Future which yields a future containing all Futures which match pred?

`pred?` needs to return a Future that yields a boolean. Returns a Future which yields a future containing all Futures which match `pred?`
raw docstring

from-tryclj

(from-try f)

Creates a future from a function f. See try*

Creates a future from a function `f`. See `try*`
raw docstring

futurecljmacro

(future & body)

Dispatches body on a separate thread and returns a future that will eventually contain the result. body must be free of side effects. See future-call

Dispatches `body` on a separate thread and returns a future that will eventually contain the result. `body` must be free of side effects.
See `future-call`
raw docstring

future-callclj

(future-call task)

Dispatches task on a separate thread and returns a future that will eventually contain the result of task. task must be free of side effects.

Dispatches `task` on a separate thread and returns a future that will eventually contain the result of `task`.
`task` must be free of side effects.
raw docstring

m-ctxclj

A simple, 'empty' future instance that can be used as a monad context to combinators that require one.

A simple, 'empty' future instance that can be used as a monad context to combinators that require one.
raw docstring

map-futureclj

f needs to return a future. Maps f over vs and sequences all resulting futures. See sequence

`f` needs to return a future. Maps `f` over `vs` and sequences all resulting futures. See `sequence`
raw docstring

promiseclj

(promise)

Creates a new, unresolved promise.

Creates a new, unresolved promise.
raw docstring

reduceclj

(reduce f seed ms)

Returns a Future containing a list of the results yielded by all futures in ms further reduced using f and seed. See sequence and map

Returns a Future containing a list of the results yielded by all futures in `ms` further reduced using `f` and `seed`. See `sequence` and `map`
raw docstring

sequenceclj

Given a list of futures, returns a future that will eventually contain a list of the results yielded by all futures. If any future fails, returns a Future representing that failure

Given a list of futures, returns a future that will eventually contain a list of the results yielded by all futures. If any future fails, returns a Future representing that failure
raw docstring

try*clj

(try* f)

Wraps f in a try/catch. Returns the result of f in a Success type if successful. Returns a Failure containing the exception otherwise.

Wraps `f` in a try/catch. Returns the result of `f` in a `Success` type if successful. Returns a `Failure` containing the exception otherwise.
raw docstring

try-futurecljmacro

(try-future & body)

Wraps body in a try/catch. If an exception is thrown, returns a Future which yields a Failure containg the exception.

Wraps body in a try/catch. If an exception is thrown, returns a Future which yields a Failure containg the exception.
raw docstring

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

× close