Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.task

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.
raw docstring

*task*clj

The [session id] of the Task that owns this host call.

The `[session id]` of the Task that owns this host call.
sourceraw docstring

acknowledge!clj

(acknowledge! session id)
source

admissionclj

(admission session id)

The launch callback of a pending resource Task.

The launch callback of a pending resource Task.
sourceraw docstring

at-publication-cursorclj

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

await!clj

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

awaited-idsclj

(awaited-ids session block)
source

call-idclj

(call-id)
source

cancel!clj

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

cancel-result!clj

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

cancellingclj

(cancelling session id)
source

complete-resource!clj

(complete-resource! session resource produce)

Settle the current running Task for this resource once.

Settle the current running Task for this resource once.
sourceraw docstring

detach-awaits!clj

(detach-awaits! session reason)

Release current waits without interrupting their Tasks.

Release current waits without interrupting their Tasks.
sourceraw docstring

detached?clj

(detached?)

Whether this Task has let its caller continue without it.

Whether this Task has let its caller continue without it.
sourceraw docstring

discard!clj

(discard! session id)

Remove a reservation that failed before admission.

Remove a reservation that failed before admission.
sourceraw docstring

forget-view!clj

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

guest-taskclj

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

install-interrupt!clj

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

leave-block!clj

(leave-block! session block)

Remove waits the block could not release as it unwound.

Remove waits the block could not release as it unwound.
sourceraw docstring

live?clj

(live? session)
source

owns-generation?clj

(owns-generation? session id generation)

Whether this Task still names the given process generation.

Whether this Task still names the given process generation.
sourceraw docstring

rename!clj

(rename! session id name)
source

resource-taskclj

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

set-publisher!clj

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

shell-snapshotclj

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

start!clj

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

start-manual!clj

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

stateclj

(state session id)
source

statusclj

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

sweep!clj

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

take-detach-notices!clj

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

take-ended-notices!clj

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

tasksclj

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

track-view!clj

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

uncancel!clj

(uncancel! session id)
source

wire-stateclj

(wire-state session id)
source

wire-tasksclj

(wire-tasks session)
source

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