Liking cljdoc? Tell your friends :D

gen.process


*print-state*clj


*stacktrace-max-length*clj


*stacktraces*clj


(add-links process links)

add-to-linkerclj

(add-to-linker process)
(add-to-linker process linker)

alive?clj

(alive? process)

createclj

(create &
        {:keys [name thread start stop-timeout message-queue linker links
                return-promise stop-promise state-getter receive-promise-queue
                type]
         :or {type :default
              message-queue (clojure.lang.PersistentQueue/EMPTY)
              receive-promise-queue (clojure.lang.PersistentQueue/EMPTY)
              links #{}
              stop-timeout 500
              start (fn [process args stop-promise] nil)}})

(get-links process)

get-threadclj

(get-thread process)

(have-dead-links process)

killclj

(kill process)

messageclj

(message to message#)
(message from to message)

If no FROM message, attempt to lookup your process in default linker-storage by your thread. If it's not there, from is nil.

If no FROM message, attempt to lookup your process in
default linker-storage by your thread. If it's not there,
from is nil.
raw docstring

message-internalclj

(message-internal process message)

process?clj

(process? arg)

queue-empty?clj

(queue-empty? process)

queue-flushclj

(queue-flush process)

queue-popclj

(queue-pop process)

queue-sizeclj

(queue-size process)

queue-topclj

(queue-top process)

receivecljmacro

(receive [variable process] BODY)
(receive [variable process] TRUE-BODY FALSE-BODY)

VARIABLE is variable, which will hold message(or promise, see below). If FALSE-BODY is given, execute TRUE-BODY only if message was received now, otherwise execute FALSE-BODY. If FALSE-BODY is not given, variable will hold promise, that will hold message, when it will be received. Use deref.

VARIABLE is variable, which will hold message(or promise, see below).
If FALSE-BODY is given, execute TRUE-BODY only if message
was received now, otherwise execute FALSE-BODY.
If FALSE-BODY is not given, variable will hold promise, that
 will hold message, when it will be received. Use deref.
raw docstring

restartclj

(restart process reason args)

(restart-link process reason args)

result-ofclj

(result-of process)

selfclj

(self & {:keys [storage] :or {storage gen.linker-storage/*linker*}})

(set-links process links)

stacktrace-ofclj

(stacktrace-of process & [max-length])

startclj

(start process args)

(start-link process args)

state-ofclj

(state-of process)

stopclj

(stop process reason)

to-stringclj

(to-string process)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close