Skip to content

Commit 87f5816

Browse files
committed
Got rid of (unimplemented) process-specific commands (command-proc). Use inputs system instead
1 parent a0fb0b9 commit 87f5816

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Diff for: src/main/clojure/clojure/core/async/flow.clj

-6
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@
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

Diff for: src/main/clojure/clojure/core/async/flow/impl.clj

+1-8
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,9 @@
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)]

0 commit comments

Comments
 (0)