Liking cljdoc? Tell your friends :D

virtuoso.core


->iterclj

(->iter coll)
source

deref-allclj

(deref-all futs)

Dereference all the futures. Return a vector of values.

Dereference all the futures. Return a vector of values.
sourceraw docstring

eachcljmacro

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

each!cljmacro

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

futurecljmacro

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

future-viacljmacro

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

futurescljmacro

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

futures!cljmacro

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

get-nextclj

(get-next iter)
source

has-next?clj

(has-next? iter)
source

pmapclj

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

pmap!clj

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

threadcljmacro

(thread & body)

Spawn and run a new virtual thread.

Spawn and run a new virtual thread.
sourceraw docstring

with-executorcljmacro

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

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

× close