Liking cljdoc? Tell your friends :D

co.multiply.quiescent.impl

Task implementation: state machine, executors, and the Task type.

Tasks progress through phases gated by CAS transitions on a MachineLatch. See state-machine for the lifecycle definition and Task for coordination details.

Task implementation: state machine, executors, and the Task type.

Tasks progress through phases gated by CAS transitions on a MachineLatch.
See `state-machine` for the lifecycle definition and `Task` for coordination details.
raw docstring

*this*clj/s

The currently executing task, used for parent-child registration.

The currently executing task, used for parent-child registration.
raw docstring

-do-runclj/s

(-do-run t f)

-pending-taskclj/s

(-pending-task delegator)
(-pending-task delegator compelled)

Create a new Task in pending state. The latch is used as the initial sentinel value in the state AtomicReference, allowing CAS to detect first write.

Create a new Task in pending state. The latch is used as the initial sentinel
value in the state AtomicReference, allowing CAS to detect first write.
raw docstring

cancelled?clj/s

(cancelled? t)

True if the given task is cancelled.

True if the given task is cancelled.
raw docstring

do-applierclj/smacro

(do-applier delegator v)
(do-applier delegator v e)
(do-applier delegator v e tf)

Create a task that grounds a value (and optionally transforms it).

Unlike -live-task which runs a function, this applies a value directly. The value is grounded (nested tasks resolved in parallel), then optionally transformed by tf. Used by coordination functions like then, qmerge, and qdo to await multiple values and apply a combining function.

Arities: [delegator v] - Ground v, no transform [delegator v e] - If e, fail with e; otherwise ground v [delegator v e tf] - If e, fail with e; otherwise ground v then apply tf

Create a task that grounds a value (and optionally transforms it).

Unlike `-live-task` which runs a function, this applies a value directly.
The value is grounded (nested tasks resolved in parallel), then optionally
transformed by `tf`. Used by coordination functions like `then`, `qmerge`,
and `qdo` to await multiple values and apply a combining function.

Arities:
  `[delegator v]`       - Ground v, no transform
  `[delegator v e]`     - If e, fail with e; otherwise ground v
  `[delegator v e tf]`  - If e, fail with e; otherwise ground v then apply tf
raw docstring

do-runnerclj/smacro

(do-runner delegator & body)

interrupted?clj/s

(interrupted?)

task?clj/s

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close