(deref-all futs)Dereference all the futures. Return a vector of values.
Dereference all the futures. Return a vector of values.
(each [item coll] & body)Run a block of code for each collection's item. The item
is bound to the item symbol. Return a vector of futures
each bound to a temporal virtual executor.
Run a block of code for each collection's item. The item is bound to the `item` symbol. Return a vector of futures each bound to a temporal virtual executor.
(each! [item coll] & body)Like each but dereference all the futures. Return a vector
of values. Should any task fail, throw an exception.
Like `each` but dereference all the futures. Return a vector of values. Should any task fail, throw an exception.
(future & body)Spawn a new future using a temporal virtual executor. Close the pool afterwards. Block until the task is completed.
Spawn a new future using a temporal virtual executor. Close the pool afterwards. Block until the task is completed.
(future-via executor & body)Spawn a new future using a previously open executor. Do not wait for the task to be completed.
Spawn a new future using a previously open executor. Do not wait for the task to be completed.
(futures & forms)Wrap each form into a future bound to a temporal virtual executor. Return a vector of futures. Close the pool afterwards blocking until all the tasks are complete.
Wrap each form into a future bound to a temporal virtual executor. Return a vector of futures. Close the pool afterwards blocking until all the tasks are complete.
(futures! & forms)Like futures but dereference all the futures. Return
a vector of dereferenced values. Should any task fail,
trigger an exception.
Like `futures` but dereference all the futures. Return a vector of dereferenced values. Should any task fail, trigger an exception.
(pmap func coll)(pmap func coll & colls)Like clojure.core/pmap but wrap each step into a future
bound to a temporal virtual executor. Return a vector of
futures. Close the pool afterwards which leads to blocking
until all the tasks are completed.
Like `clojure.core/pmap` but wrap each step into a future bound to a temporal virtual executor. Return a vector of futures. Close the pool afterwards which leads to blocking until all the tasks are completed.
(pmap! func coll)(pmap! func coll & colls)Like pmap but dereference all the futures. Return a vector
of values. Should any task fail, throw an exception.
Like `pmap` but dereference all the futures. Return a vector of values. Should any task fail, throw an exception.
(thread & body)Spawn and run a new virtual thread.
Spawn and run a new virtual thread.
(with-executor [bind] & body)Run a block of code with a new instance of a virtual task executor
bound to the bind symbol. The executor gets closed when exiting
the macro. Guarantees that all the submitted tasks will be completed
before closing the executor.
Run a block of code with a new instance of a virtual task executor bound to the `bind` symbol. The executor gets closed when exiting the macro. Guarantees that all the submitted tasks will be completed before closing the executor.
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 |