Skip to content

Commit 4860484

Browse files
authored
Remove comment about the need of cancelAll (#138)
1 parent 5074896 commit 4860484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ServiceLifecycle/GracefulShutdown.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public func cancelOnGracefulShutdown<T>(_ operation: @Sendable @escaping () asyn
8080
}
8181

8282
let result = try await group.next()
83-
group.cancelAll() // currently needed, as the group does not always auto-cancel tasks on return
83+
group.cancelAll()
8484

8585
switch result {
8686
case .value(let t):

0 commit comments

Comments
 (0)