File tree 2 files changed +1
-14
lines changed
src/main/clojure/clojure/core/async
2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 134
134
" like ping, but just pings the specified process"
135
135
[g pid & {:keys [timeout-ms] :or {timeout-ms 1000 }}]
136
136
(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))
143
137
144
138
(defn inject
145
139
" asynchronously puts the messages on the channel corresponding to the
Original file line number Diff line number Diff line change 166
166
(pause [_] (send-command ::flow/pause ::flow/all ))
167
167
(resume [_] (send-command ::flow/resume ::flow/all ))
168
168
(ping [_ timeout-ms] (handle-ping ::flow/all timeout-ms))
169
-
170
169
(pause-proc [_ pid] (send-command ::flow/pause pid))
171
170
(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))
179
172
(inject [_ coord msgs]
180
173
(let [{:keys [resolver]} (running-chans )
181
174
chan (spi/get-write-chan resolver coord)]
You can’t perform that action at this time.
0 commit comments