We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents baa2859 + 4ebc10c commit 3dc6c2fCopy full SHA for 3dc6c2f
Sources/ConnectionPoolModule/ConnectionPool.swift
@@ -310,12 +310,15 @@ public final class ConnectionPool<
310
await self.run(in: &taskGroup)
311
}
312
} onCancel: {
313
- let actions = self.stateBox.withLockedValue { state in
314
- state.stateMachine.triggerForceShutdown()
315
- }
+ self.triggerForceShutdown()
+ }
316
317
- self.runStateMachineActions(actions)
+ public func triggerForceShutdown() {
318
+ let actions = self.stateBox.withLockedValue { state in
319
+ state.stateMachine.triggerForceShutdown()
320
321
+ self.runStateMachineActions(actions)
322
323
324
// MARK: - Private Methods -
0 commit comments