Liking cljdoc? Tell your friends :D

shadow.cljs.devtools.server.worker


compileclj

(compile {:keys [proc-control] :as proc})

triggers an async compilation, use watch to receive notification about worker state

triggers an async compilation, use watch to receive notification about worker state
raw docstring

compile!clj

(compile! {:keys [proc-control] :as proc})

triggers an async compilation and waits for the compilation result (blocking)

triggers an async compilation and waits for the compilation result (blocking)
raw docstring

load-fileclj

(load-file worker {:keys [source file-path] :as file-info})

repl-compileclj

(repl-compile worker input)

repl-evalclj

(repl-eval worker session-id runtime-id input)

repl-runtime-connectclj

(repl-runtime-connect {:keys [proc-stop proc-control] :as proc}
                      runtime-id
                      runtime-out
                      runtime-info)

called by processes that are able to eval repl commands and report their result

runtime-out should be a channel that receives things generated by shadow.cljs.repl (:repl/invoke, :repl/require, etc)

returns a channel the results of eval should be put in when no more results are coming this channel should be closed

called by processes that are able to eval repl commands and report their result

runtime-out should be a channel that receives things generated by shadow.cljs.repl
(:repl/invoke, :repl/require, etc)

returns a channel the results of eval should be put in
when no more results are coming this channel should be closed
raw docstring

startclj

(start config
       system-bus
       executor
       cache-root
       http
       classpath
       npm
       babel
       {:keys [build-id] :as build-config})

start-autobuildclj

(start-autobuild {:keys [proc-control] :as proc})

automatically compile on file changes

automatically compile on file changes
raw docstring

stopclj

(stop {:keys [fs-watch] :as proc})

stop-autobuildclj

(stop-autobuild {:keys [proc-control] :as proc})

sync!clj

(sync! {:keys [proc-control] :as proc})

ensures that all proc-control commands issued have completed

ensures that all proc-control commands issued have completed
raw docstring

watchclj

(watch proc log-chan)
(watch {:keys [output-mult] :as proc} log-chan close?)

watch all output produced by the worker

watch all output produced by the worker
raw docstring

worker-requestclj

(worker-request {:keys [proc-control state-ref] :as worker} request)

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

× close