File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
src/main/clojure/clojure/core/async Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 134134 " like ping, but just pings the specified process"
135135 [g pid & {:keys [timeout-ms] :or {timeout-ms 1000 }}]
136136 (g/ping-proc g pid timeout-ms))
137-
138- (defn command-proc
139- " synchronously sends a process-specific command with the given id and
140- additional kvs to the process. The cmd-id must be ns-qualified with
141- a ns you own."
142- [g pid cmd-id more-kvs] (g/command-proc g pid cmd-id more-kvs))
143137
144138(defn inject
145139 " asynchronously puts the messages on the channel corresponding to the
Original file line number Diff line number Diff line change 166166 (pause [_] (send-command ::flow/pause ::flow/all ))
167167 (resume [_] (send-command ::flow/resume ::flow/all ))
168168 (ping [_ timeout-ms] (handle-ping ::flow/all timeout-ms))
169-
170169 (pause-proc [_ pid] (send-command ::flow/pause pid))
171170 (resume-proc [_ pid] (send-command ::flow/resume pid))
172- (ping-proc [_ pid timeout-ms] (handle-ping pid timeout-ms))
173- (command-proc [_ pid command kvs]
174- (assert (and (namespace command) (not= (namespace ::flow/command ) (namespace command)))
175- " extension commands must be in your own namespace" )
176- (let [{:keys [control]} (running-chans )]
177- (async/>!! control (merge kvs #::flow{:command command :to pid}))))
178-
171+ (ping-proc [_ pid timeout-ms] (handle-ping pid timeout-ms))
179172 (inject [_ coord msgs]
180173 (let [{:keys [resolver]} (running-chans )
181174 chan (spi/get-write-chan resolver coord)]
You can’t perform that action at this time.
0 commit comments