Skip to content

Commit

Permalink
Remove deprecation of withGracefulShutdownHandler if compiler < 6 (#194)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hamzahrmalik authored Jan 3, 2025
1 parent c5407a8 commit c2e97cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/ServiceLifecycle/GracefulShutdown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public func withGracefulShutdownHandler<T>(
#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<T>(
Expand Down

0 comments on commit c2e97cf

Please sign in to comment.