Skip to content

Commit af161e1

Browse files
committed
Start refactor no blockin in go (loop)
1 parent c2b3055 commit af161e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/neovim_client/rpc.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
:in-chan in-chan
8686
:message-table message-table
8787
:method-table method-table}]
88-
(async/go-loop
88+
(future (loop
8989
[]
90-
(when-let [msg (async/<! in-chan)]
90+
(when-let [msg (async/<!! in-chan)]
9191
(condp = (msg-type msg)
9292

9393
msg/+response+
@@ -100,7 +100,7 @@
100100
result (f msg)]
101101
(send-message-async!
102102
component (->response-msg (id msg) result) nil)))
103-
(recur)))
103+
(recur))))
104104
component))
105105

106106
(defn new

0 commit comments

Comments
 (0)