File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 57
57
(deftest go-off-nests
58
58
(testing " return deferred will always result in a a realizable value, not another deferred"
59
59
(is (= [23 42 ] @(go-off (let [let* 1 a 23 ] (go-off (let* [b 42 ] [a b]))))))
60
- (is (= 5 @(go-off (go-off (go-off (go-off (go-off ( go-off ( go-off 5 )) ))))))))
60
+ (is (= 5 @(go-off (go-off (go-off (go-off (go-off 5 ))))))))
61
61
(testing " Parking unwraps nested deferreds"
62
62
(is (= 5 @(go-off (<!? (go-off (go-off (go-off 5 )))))))))
63
63
173
173
(bench " go-off deferred x5"
174
174
@(go-off (inc (<!? (inc (<!? (inc (<!? (inc (<!? (inc (<!? (d/success-deferred 0 ))))))))))))
175
175
(bench " go-off future 200 x5"
176
- @(go-off (inc (<!? (inc (<!? (inc (<!? (inc (<!? (inc (<!? (d/future (Thread/sleep 200 ) 0 )))))))))))))))
176
+ @(go-off (inc (<!? (inc (<!? (inc (<!? (inc (<!? (inc (<!? (d/future (Thread/sleep 200 ) 0 )))))))))))))))
You can’t perform that action at this time.
0 commit comments