File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Sources/ConnectionPoolModule Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
public struct ConnectionPoolError : Error , Hashable {
3
- enum Base : Error , Hashable {
3
+ @usableFromInline
4
+ enum Base : Error , Hashable , Sendable {
4
5
case requestCancelled
5
6
case poolShutdown
6
7
}
7
8
8
- private let base : Base
9
+ @usableFromInline
10
+ let base : Base
9
11
12
+ @inlinable
10
13
init ( _ base: Base ) { self . base = base }
11
14
12
15
/// The connection requests got cancelled
13
- public static let requestCancelled = ConnectionPoolError ( . requestCancelled)
16
+ @inlinable
17
+ public static var requestCancelled : Self {
18
+ ConnectionPoolError ( . requestCancelled)
19
+ }
14
20
/// The connection requests can't be fulfilled as the pool has already been shutdown
15
- public static let poolShutdown = ConnectionPoolError ( . poolShutdown)
21
+ @inlinable
22
+ public static var poolShutdown : Self {
23
+ ConnectionPoolError ( . poolShutdown)
24
+ }
16
25
}
You can’t perform that action at this time.
0 commit comments