Skip to content

Commit b634e95

Browse files
committed
Use d/on-realized in manifold.go-off/take!
This saves a bit of overhead relative to `d/chain` + `d/catch`.
1 parent a9ca6cf commit b634e95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/manifold/go_off.clj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@
6868
:recur)
6969

7070
;; resume processing state machine once d has been realized
71-
(do (-> d
72-
(d/chain handler)
73-
(d/catch handler))
71+
(do (d/on-realized d handler handler)
7472
nil))))))
7573

7674
(def ^:no-doc async-custom-terminators

0 commit comments

Comments
 (0)