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.
triggerForceShutdown
ConnectionPool
1 parent c7e2cda commit f53485cCopy full SHA for f53485c
Sources/ConnectionPoolModule/ConnectionPool.swift
@@ -283,12 +283,15 @@ public final class ConnectionPool<
283
await self.run(in: &taskGroup)
284
}
285
} onCancel: {
286
- let actions = self.stateBox.withLockedValue { state in
287
- state.stateMachine.triggerForceShutdown()
288
- }
+ self.triggerForceShutdown()
+ }
289
290
- self.runStateMachineActions(actions)
+ public func triggerForceShutdown() {
291
+ let actions = self.stateBox.withLockedValue { state in
292
+ state.stateMachine.triggerForceShutdown()
293
294
+ self.runStateMachineActions(actions)
295
296
297
// MARK: - Private Methods -
0 commit comments