From c2e97cf6f81510f2d6b4a69453861db65d478560 Mon Sep 17 00:00:00 2001 From: hamzahrmalik Date: Fri, 3 Jan 2025 11:29:08 +0000 Subject: [PATCH] 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. --- Sources/ServiceLifecycle/GracefulShutdown.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Sources/ServiceLifecycle/GracefulShutdown.swift b/Sources/ServiceLifecycle/GracefulShutdown.swift index 2ba844e..56daca0 100644 --- a/Sources/ServiceLifecycle/GracefulShutdown.swift +++ b/Sources/ServiceLifecycle/GracefulShutdown.swift @@ -81,7 +81,6 @@ public func withGracefulShutdownHandler( #else // We need to retain this method with `@_unsafeInheritExecutor` otherwise we will break older // Swift versions since the semantics changed. -@available(*, deprecated, message: "Use the method with the isolation parameter instead.") @_disfavoredOverload @_unsafeInheritExecutor public func withGracefulShutdownHandler(