File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog #
2
2
3
-
4
3
## Version 12.0.xxx
5
4
6
5
- Add integration with StructuredTaskScope (Structured Concurrency)
7
6
- Remove deprecated executors constructors (deprecated in v9)
7
+ - Add default-on-timeout arity for ` p/await ` and ` p/await! ` .
8
+ - Add helper for properly unwrap concurrent exceptions: ` pu/unwrap-exception `
8
9
9
10
BREAKING CHANGES:
10
11
Original file line number Diff line number Diff line change 779
779
([resource]
780
780
(pt/-await! resource))
781
781
([resource duration]
782
+ (await! resource duration nil ))
783
+ ([resource duration default-on-timeout ]
782
784
(try
783
785
(pt/-await! resource duration)
784
786
(catch TimeoutException _
785
- nil )))))
787
+ default-on-timeout )))))
786
788
787
789
#?(:clj
788
790
(defn await
798
800
(catch Throwable cause
799
801
cause)))
800
802
([resource duration]
803
+ (await resource duration nil ))
804
+ ([resource duration default-on-timeout ]
801
805
(try
802
806
(pt/-await! resource duration)
803
807
(catch TimeoutException _
804
- nil )
808
+ default-on-timeout )
805
809
(catch InterruptedException cause
806
810
(throw cause))
807
811
(catch Throwable cause
Original file line number Diff line number Diff line change 178
178
(-closed? [it]
179
179
(.isShutdown it))
180
180
(-close! [it]
181
- (.close it))
181
+ (.close ^java.lang.AutoCloseable it))
182
182
183
183
java.lang.AutoCloseable
184
184
(-closed? [_]
You can’t perform that action at this time.
0 commit comments