Unidirectional monitors for observing process termination. Pids are Thread objects.
Unidirectional monitors for observing process termination. Pids are Thread objects.
(add-monitor! ref-id watcher-pid target-pid target-name)Add a monitor. Internal use.
Add a monitor. Internal use.
(cleanup-monitors-for-watcher! watcher-pid)Remove all monitors owned by watcher. Called during process cleanup.
Remove all monitors owned by watcher. Called during process cleanup.
(get-monitors-by-target target-pid)Returns seq of monitor-info maps for monitors watching target-pid.
Returns seq of monitor-info maps for monitors watching target-pid.
(get-monitors-by-watcher watcher-pid)Returns seq of monitor-info maps for monitors owned by watcher-pid.
Returns seq of monitor-info maps for monitors owned by watcher-pid.
(monitor target)Monitor target process. Returns TRef. When target terminates, watcher receives [:DOWN ref :process target reason]. Must be called from within a process context.
Monitor target process. Returns TRef. When target terminates, watcher receives [:DOWN ref :process target reason]. Must be called from within a process context.
(notify-monitors! pid reason dying-ctx)Notify all monitors watching pid that it has terminated. dying-ctx is the context from the dying process, passed along for tracing.
Notify all monitors watching pid that it has terminated. dying-ctx is the context from the dying process, passed along for tracing.
(remove-monitor! ref-id)Remove a monitor by ref-id. Internal use.
Remove a monitor by ref-id. Internal use.
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 |