Liking cljdoc? Tell your friends :D

loom-otp.core

System lifecycle management.

Usage: (require '[loom-otp.core :as otp])

;; Start the system first (otp/start!)

;; Main API - loom-otp.process provides most things: ;; - spawn, spawn-link, spawn-opt - create processes ;; - self, send - current process and messaging ;; - exit - terminate processes ;; - link, unlink - bidirectional links ;; - monitor, demonitor - unidirectional monitors
;; - receive!, selective-receive! - receive messages (functions) ;; - alive?, processes, process-info, register

;; For pattern-matching receive: ;; - loom-otp.process.match for receive!, selective-receive! macros

;; For virtual thread futures: ;; - loom-otp.vfuture for vfuture macro

;; Behaviors: ;; - loom-otp.gen-server for gen_server behavior ;; - loom-otp.supervisor for supervisor behavior ;; - loom-otp.timer for timers

;; Stop when done (otp/stop!)

System lifecycle management.

Usage:
(require '[loom-otp.core :as otp])

;; Start the system first
(otp/start!)

;; Main API - loom-otp.process provides most things:
;; - spawn, spawn-link, spawn-opt - create processes
;; - self, send - current process and messaging
;; - exit - terminate processes
;; - link, unlink - bidirectional links
;; - monitor, demonitor - unidirectional monitors  
;; - receive!, selective-receive! - receive messages (functions)
;; - alive?, processes, process-info, register

;; For pattern-matching receive:
;; - loom-otp.process.match for receive!, selective-receive! macros

;; For virtual thread futures:
;; - loom-otp.vfuture for vfuture macro

;; Behaviors:
;; - loom-otp.gen-server for gen_server behavior
;; - loom-otp.supervisor for supervisor behavior
;; - loom-otp.timer for timers

;; Stop when done
(otp/stop!)
raw docstring

reset-all!clj

source

start!clj

(start!)

Start the loom-otp system. Must be called before using processes.

Start the loom-otp system. Must be called before using processes.
sourceraw docstring

statusclj

(status)

Get the status of all mount states.

Get the status of all mount states.
sourceraw docstring

stop!clj

(stop!)

Stop the loom-otp system, terminating all processes and timers.

Stop the loom-otp system, terminating all processes and timers.
sourceraw docstring

with-sessioncljmacro

(with-session & body)

Create a new isolated session for parallel testing. All states are independent within this session.

Create a new isolated session for parallel testing.
All states are independent within this session.
sourceraw docstring

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