From dc04d4f0d4f1c966f382b467497b1b76e448bbe8 Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Wed, 15 Oct 2025 16:59:32 -0400 Subject: [PATCH] Revert "[stdlib] Make PlatformExecutorFactory and ExecutorFactory deploy to 6.3 instead of 6.2." --- stdlib/public/Concurrency/Executor.swift | 4 ++-- stdlib/public/Concurrency/PlatformExecutorCooperative.swift | 2 +- stdlib/public/Concurrency/PlatformExecutorDarwin.swift | 2 +- stdlib/public/Concurrency/PlatformExecutorFreeBSD.swift | 2 +- stdlib/public/Concurrency/PlatformExecutorLinux.swift | 2 +- stdlib/public/Concurrency/PlatformExecutorNone.swift | 2 +- stdlib/public/Concurrency/PlatformExecutorOpenBSD.swift | 2 +- stdlib/public/Concurrency/PlatformExecutorWindows.swift | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/stdlib/public/Concurrency/Executor.swift b/stdlib/public/Concurrency/Executor.swift index 7dc8ab8b09c6a..7a408c521d78e 100644 --- a/stdlib/public/Concurrency/Executor.swift +++ b/stdlib/public/Concurrency/Executor.swift @@ -591,7 +591,7 @@ public protocol MainExecutor: RunLoopExecutor, SerialExecutor { /// An ExecutorFactory is used to create the default main and task /// executors. -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) public protocol ExecutorFactory { #if os(WASI) || !$Embedded /// Constructs and returns the main executor, which is started implicitly @@ -604,7 +604,7 @@ public protocol ExecutorFactory { static var defaultExecutor: any TaskExecutor { get } } -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) typealias DefaultExecutorFactory = PlatformExecutorFactory @available(StdlibDeploymentTarget 6.2, *) diff --git a/stdlib/public/Concurrency/PlatformExecutorCooperative.swift b/stdlib/public/Concurrency/PlatformExecutorCooperative.swift index 03b7b7633cff8..e9288bfc7cdd7 100644 --- a/stdlib/public/Concurrency/PlatformExecutorCooperative.swift +++ b/stdlib/public/Concurrency/PlatformExecutorCooperative.swift @@ -13,7 +13,7 @@ import Swift // This platform uses a single, global, CooperativeExecutor -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { static let executor = CooperativeExecutor() public static var mainExecutor: any MainExecutor { executor } diff --git a/stdlib/public/Concurrency/PlatformExecutorDarwin.swift b/stdlib/public/Concurrency/PlatformExecutorDarwin.swift index b94e591842162..71cf93d92f879 100644 --- a/stdlib/public/Concurrency/PlatformExecutorDarwin.swift +++ b/stdlib/public/Concurrency/PlatformExecutorDarwin.swift @@ -14,7 +14,7 @@ import Swift -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { public static var mainExecutor: any MainExecutor { if CoreFoundation.isPresent { diff --git a/stdlib/public/Concurrency/PlatformExecutorFreeBSD.swift b/stdlib/public/Concurrency/PlatformExecutorFreeBSD.swift index 24ffc4c27416d..b7a4deb25356c 100644 --- a/stdlib/public/Concurrency/PlatformExecutorFreeBSD.swift +++ b/stdlib/public/Concurrency/PlatformExecutorFreeBSD.swift @@ -15,7 +15,7 @@ import Swift // The default executors for now are Dispatch-based -@available(SwiftStdlib 6.3, *) +@available(SwiftStdlib 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { public static let mainExecutor: any MainExecutor = DispatchMainExecutor() public static let defaultExecutor: any TaskExecutor diff --git a/stdlib/public/Concurrency/PlatformExecutorLinux.swift b/stdlib/public/Concurrency/PlatformExecutorLinux.swift index cb975e7b1a52e..19d245a1a7e6e 100644 --- a/stdlib/public/Concurrency/PlatformExecutorLinux.swift +++ b/stdlib/public/Concurrency/PlatformExecutorLinux.swift @@ -15,7 +15,7 @@ import Swift // The default executors for now are Dispatch-based -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { public static let mainExecutor: any MainExecutor = DispatchMainExecutor() public static let defaultExecutor: any TaskExecutor diff --git a/stdlib/public/Concurrency/PlatformExecutorNone.swift b/stdlib/public/Concurrency/PlatformExecutorNone.swift index 35f857de4e4a8..c052893f5413a 100644 --- a/stdlib/public/Concurrency/PlatformExecutorNone.swift +++ b/stdlib/public/Concurrency/PlatformExecutorNone.swift @@ -12,7 +12,7 @@ import Swift -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { public static let mainExecutor: any MainExecutor = UnimplementedMainExecutor() public static let defaultExecutor: any TaskExecutor = UnimplementedTaskExecutor() diff --git a/stdlib/public/Concurrency/PlatformExecutorOpenBSD.swift b/stdlib/public/Concurrency/PlatformExecutorOpenBSD.swift index ea7f39cd0dae8..4bd2db9d5ebdc 100644 --- a/stdlib/public/Concurrency/PlatformExecutorOpenBSD.swift +++ b/stdlib/public/Concurrency/PlatformExecutorOpenBSD.swift @@ -15,7 +15,7 @@ import Swift // The default executors for now are Dispatch-based -@available(SwiftStdlib 6.3, *) +@available(SwiftStdlib 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { public static let mainExecutor: any MainExecutor = DispatchMainExecutor() public static let defaultExecutor: any TaskExecutor diff --git a/stdlib/public/Concurrency/PlatformExecutorWindows.swift b/stdlib/public/Concurrency/PlatformExecutorWindows.swift index f8936cef69469..08ec70519931c 100644 --- a/stdlib/public/Concurrency/PlatformExecutorWindows.swift +++ b/stdlib/public/Concurrency/PlatformExecutorWindows.swift @@ -15,7 +15,7 @@ import Swift // The default executors for now are Dispatch-based -@available(StdlibDeploymentTarget 6.3, *) +@available(StdlibDeploymentTarget 6.2, *) public struct PlatformExecutorFactory: ExecutorFactory { public static let mainExecutor: any MainExecutor = DispatchMainExecutor() public static let defaultExecutor: any TaskExecutor =