Session-owned work. The registry owns state; work and interrupt functions run outside its lock.
Session-owned work. The registry owns state; work and interrupt functions run outside its lock.
The [session id] of the Task that owns this host call.
The `[session id]` of the Task that owns this host call.
(admission session id)The launch callback of a pending resource Task.
The launch callback of a pending resource Task.
(at-publication-cursor session cursor)Capture Task rows after prior publications and before later ones. cursor reads the event seq.
Capture Task rows after prior publications and before later ones. `cursor` reads the event seq.
(await! session id {:keys [block token timeout-ms leave? hold observation?]})Read an outcome, or wait for it. token registers a wait by this block.
Read an outcome, or wait for it. `token` registers a wait by this block.
(cancel! session id reason)(cancel! session id reason kind)(cancel! session id reason kind message)Request an interrupt and report whether the Task accepted it.
Request an interrupt and report whether the Task accepted it.
(cancel-result! session id reason)Request cancellation and return the decision, or nil if the Task does not exist.
Request cancellation and return the decision, or nil if the Task does not exist.
(complete-resource! session resource produce)Settle the current running Task for this resource once.
Settle the current running Task for this resource once.
(detach-awaits! session reason)Release current waits without interrupting their Tasks.
Release current waits without interrupting their Tasks.
(detached?)Whether this Task has let its caller continue without it.
Whether this Task has let its caller continue without it.
(discard! session id)Remove a reservation that failed before admission.
Remove a reservation that failed before admission.
(forget-view! [session id] view-id)Release a view already closed by the tool or person.
Release a view already closed by the tool or person.
(guest-task session id)The guest descriptor, or nil for a Task it does not own.
The guest descriptor, or nil for a Task it does not own.
(install-interrupt! interrupt)Set the interrupt for the executing Task. Honor a request made before it started.
Set the interrupt for the executing Task. Honor a request made before it started.
(leave-block! session block)Remove waits the block could not release as it unwound.
Remove waits the block could not release as it unwound.
(owns-generation? session id generation)Whether this Task still names the given process generation.
Whether this Task still names the given process generation.
(resource-task session resource)The newest Task row for a resource owned by this session, if any.
The newest Task row for a resource owned by this session, if any.
(set-publisher! publish)Set the gateway callback (publish session event-type row), or nil to remove it.
Set the gateway callback `(publish session event-type row)`, or nil to remove it.
(shell-snapshot session task-id generation origin id)Read only the shell generation named by this capability.
Read only the shell generation named by this capability.
(start! session {:keys [hold-activity cancel-on-request?] :as opts} run)Start run once. It returns {:state :done|:failed|:cancelled, ...}.
Start `run` once. It returns `{:state :done|:failed|:cancelled, ...}`.
(start-manual! session opts interrupt)Register work whose owner will call complete! with an outcome function once
it ends. Its interrupt is installed before the row becomes visible.
Register work whose owner will call `complete!` with an outcome function once it ends. Its interrupt is installed before the row becomes visible.
(status session id)(status session id wire?)Read a Task without acknowledging its result. A live snapshot runs outside the lock.
Read a Task without acknowledging its result. A live snapshot runs outside the lock.
(sweep! session reason)Remove the session's Tasks and request stop. A late outcome cannot recreate them.
Remove the session's Tasks and request stop. A late outcome cannot recreate them.
(take-detach-notices! session block)Take the notifications for this block, not other blocks in the session.
Take the notifications for this block, not other blocks in the session.
(take-ended-notices! session)Take notices for detached Tasks that ended and whose result is unread.
Take notices for detached Tasks that ended and whose result is unread.
(tasks session)Running Tasks and completed Tasks whose result the guest has not read.
Running Tasks and completed Tasks whose result the guest has not read.
(track-view! [session id] view-id close!)Register a view and its close callback if its Task still accepts views.
Register a view and its close callback if its Task still accepts views.
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 |