Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Process Types

TypeDescription
PIDProcess identifier
PortPort identifier (for external programs)
ReferenceUnique reference

Process Identifiers:

;; Current process
(self)  ; → #Pid<0.123.0>

;; Spawn returns PID
(let ((pid (spawn (lambda () (work)))))
  (! pid 'message)
  pid)

;; Named processes
(register 'my-server (self))
(whereis 'my-server)  ; → PID