Skip to content

Commit c2e97cf

Browse files
authored
Remove deprecation of withGracefulShutdownHandler if compiler < 6 (#194)
Currently, if compiler >= 6 then there are 2 implementations. One is deprecated and one is not. But if compiler is < 6 then there is only one implementation, which is deprecated. I think this was by mistake.
1 parent c5407a8 commit c2e97cf

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Sources/ServiceLifecycle/GracefulShutdown.swift

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ public func withGracefulShutdownHandler<T>(
8181
#else
8282
// We need to retain this method with `@_unsafeInheritExecutor` otherwise we will break older
8383
// Swift versions since the semantics changed.
84-
@available(*, deprecated, message: "Use the method with the isolation parameter instead.")
8584
@_disfavoredOverload
8685
@_unsafeInheritExecutor
8786
public func withGracefulShutdownHandler<T>(

0 commit comments

Comments
 (0)