File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 177177 (- take! c (- > AltHandler handler- atom f)))))
178178 nil
179179 ops)
180- (when (and (:default options)
180+ (when (and (contains? options :default )
181181 (not @handler- atom))
182182 (reset! handler- atom true)
183183 (st/- run- later (partial k [:default (:default options)])))))
Original file line number Diff line number Diff line change 5656(defn alts!
5757 ([ops]
5858 (st/ call- cc (fn [k]
59- (chans/ alts! ops (partial st/ run- and - process k) {} ))))
59+ (chans/ alts! ops (partial st/ run- and - process k) nil ))))
6060 ([ops & opts]
6161 (st/ call- cc (fn [k]
6262 (chans/ alts! ops (partial st/ run- and - process k) (apply hashmap opts))))))
Original file line number Diff line number Diff line change 292292(extend - with - meta Nil (fn [self _] nil))
293293(extend - at- end? Nil (fn [_] true))
294294(extend - deref Nil (fn [_] nil))
295+ (extend - contains- key Nil (fn [_ _] false))
295296
296297(extend - hash Integer hash - int )
297298
Original file line number Diff line number Diff line change 2323 (alts! [c1 c2])))]
2424 (> ! c1 1 )
2525 (> ! c2 2 )
26- (println (hash - set [c1 1 ] [c2 2 ]))
2726 (assert (not (= c1 c2)))
2827 (assert = (< ! results) # {[c1 1] [c2 2]})))
2928
You can’t perform that action at this time.
0 commit comments