File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,17 @@ func shutdownThreadPoolAsync(_ pool: NIOThreadPool) async throws {
3939// These initiate shutdown but return immediately without waiting for completion.
4040
4141func shutdownEventLoopGroupInBackground( _ group: EventLoopGroup ) {
42- group. shutdownGracefully ( queue: . global( ) ) { _ in }
42+ group. shutdownGracefully ( queue: . global( ) ) { error in
43+ if let error = error {
44+ assertionFailure ( " EventLoopGroup shutdown failed in background: \( error) " )
45+ }
46+ }
4347}
4448
4549func shutdownThreadPoolInBackground( _ pool: NIOThreadPool ) {
46- pool. shutdownGracefully ( queue: . global( ) ) { _ in }
50+ pool. shutdownGracefully ( queue: . global( ) ) { error in
51+ if let error = error {
52+ assertionFailure ( " NIOThreadPool shutdown failed in background: \( error) " )
53+ }
54+ }
4755}
You can’t perform that action at this time.
0 commit comments