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 admission flag of the Python context that makes the call.
The admission flag of the Python context that makes the call.
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 park observation?]})Read an outcome, or wait for it. token registers a wait by this block.
park wraps only a blocking poll; hold lasts for the whole registered wait.
Read an outcome, or wait for it. `token` registers a wait by this block. `park` wraps only a blocking poll; `hold` lasts for the whole registered wait.
(await-first! session ids timeout-ms park)Observe admitted Task IDs. Return their input indices, without registering a foreground wait.
Observe admitted Task IDs. Return their input indices, without registering a foreground wait.
(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.
(cancel-running! session reason)Request stop of each running Task of the session. Return the IDs that accepted it.
Request stop of each running Task of the session. Return the IDs that accepted it.
(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.
(logs session id)The output lines of a Task that keeps a log (:logs of start-manual!), newest last.
Nil when the Task keeps no log or the read fails.
The output lines of a Task that keeps a log (`:logs` of `start-manual!`), newest last. Nil when the Task keeps no log or the read fails.
(observed! session id)Tell the owner of a settled Task that a guest read its outcome.
Tell the owner of a settled Task that a guest read its outcome.
(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.
(running-shell-ids session)The Tasks that own live shell generations at block admission.
The Tasks that own live shell generations at block admission.
(set-durable-reserver! reserve)Set (reserve session minimum row-for). For a saved session, return its new number
and callbacks to stage its end and acknowledge a journaled event.
Set `(reserve session minimum row-for)`. For a saved session, return its new number and callbacks to stage its end and acknowledge a journaled event.
(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-capability session task-id origin)The shell process generation registered by this exact origin, or nil.
The shell process generation registered by this exact origin, or nil.
(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.
:on-observed gets the outcome each time a guest reads it.
Register work whose owner will call `complete!` with an outcome function once it ends. Its interrupt is installed before the row becomes visible. `:on-observed` gets the outcome each time a guest reads it.
(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)(sweep! session reason prior-shells admission)Remove the session's Tasks and request stop. A late outcome cannot recreate them. Only a planned replacement supplies the shell IDs from before its block.
Remove the session's Tasks and request stop. A late outcome cannot recreate them. Only a planned replacement supplies the shell IDs from before its block.
(sweep-retired! session)Stop the Tasks of Python contexts that admit no more Tasks. Keep the other Tasks, for example the shells that an SDK client started.
Stop the Tasks of Python contexts that admit no more Tasks. Keep the other Tasks, for example the shells that an SDK client started.
(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 |