lamina.executor documentation
bound-task
macro
Executes the body on a separate thread, returning an unrealized result representing the eventual
value or error. Unlike task
, thread-local bindings are preserved when evaluating the body.
defer
fn
Defers propagation of messages onto another thread pool. This may change the downstream order of messages.
executor
fn
Defines a thread pool that can be used with instrument and defn-instrumented.
more goes here
executor-channel
fn
Creates a channel that ensures all downstream channels will receive messages on the thread-pool specified by :executor. This can be useful for both rate-limiting and parallelization.
This may change the downstream order of messages.
pmap*
fn
Like map*, but executes function on thread pool. This preserves the downstream order of messages.
shutdown
fn
Shuts down the thread pool, making it impossible for any further tasks to be enqueued.
task
macro
Executes the body on a separate thread, returning an unrealized result representing the eventual value or error.