File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 574
574
(let [d (if (closed? stream)
575
575
(d/success-deferred false )
576
576
(put! stream (f )))]
577
- (if (realized? d)
577
+ (if (d/ realized? d)
578
578
(when-not @d
579
579
(do
580
580
(@cancel )
Original file line number Diff line number Diff line change 307
307
308
308
(let [a (s/put! s 9 )
309
309
b (s/put! s 2 )]
310
- (is (realized? a))
310
+ (is (d/ realized? a))
311
311
(is (= true @a))
312
- (is (not (realized? b)))
312
+ (is (not (d/ realized? b)))
313
313
(is (= 9 @(s/take! s)))
314
- (is (realized? b))
314
+ (is (d/ realized? b))
315
315
(is (= true @b))
316
316
(let [c (s/put! s 12 )
317
317
d (s/put! s 1 )]
318
- (is (not (or (realized? c) (realized? d))))
318
+ (is (not (or (d/ realized? c) (d/ realized? d))))
319
319
(is (= 2 @(s/take! s)))
320
- (is (not (or (realized? c) (realized? d))))
320
+ (is (not (or (d/ realized? c) (d/ realized? d))))
321
321
(is (= 12 @(s/take! s)))
322
- (is (realized? d))
322
+ (is (d/ realized? d))
323
323
(is (= true @d))
324
324
(is (= 1 @(s/take! s)))))))
325
325
You can’t perform that action at this time.
0 commit comments