File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ BREAKING CHANGES:
23
23
never have been there.
24
24
25
25
26
+
26
27
## Version 11.0.678
27
28
28
29
- Fix internal coercion function (cljs only) that causes unexpected
Original file line number Diff line number Diff line change 67
67
(instance? TimeoutException e)))
68
68
69
69
#?(:clj
70
- (defn unwrap-completion- exception
71
- { :no-doc true }
70
+ (defn unwrap-exception
71
+ " Unwrap CompletionException or ExecutionException "
72
72
[cause]
73
- (if (instance? CompletionException cause)
74
- (.getCause ^CompletionException cause)
73
+ (if (or (instance? CompletionException cause)
74
+ (instance? ExecutionException cause))
75
+ (or (ex-cause cause) cause)
75
76
cause)))
76
77
77
78
#?(:clj
78
79
(deftype Function2 [f]
79
80
java.util.function.BiFunction
80
81
(apply [_ r e]
81
- (f r (unwrap-completion- exception e)))))
82
+ (f r (unwrap-exception e)))))
82
83
83
84
#?(:clj
84
85
(deftype Consumer2 [f]
85
86
java.util.function.BiConsumer
86
87
(accept [_ r e]
87
- (f r (unwrap-completion- exception e)))))
88
+ (f r (unwrap-exception e)))))
88
89
89
90
(defn handler
90
91
" Create a handler, mainly for combine two separate functions
You can’t perform that action at this time.
0 commit comments