Files
swift-mirror/stdlib/public/Concurrency/PlatformExecutorWindows.swift
T
Alastair Houghton 61cab14821 [Concurrency] Mark custom executors entry points as SPI.
Marking these as `@_spi(ExperimentalCustomExecutors)` for now, to match
what we're doing for 6.3.

rdar://168508495
2026-01-27 09:48:01 +00:00

27 lines
941 B
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#if !$Embedded && os(Windows)
import Swift
// The default executors for now are Dispatch-based
@_spi(ExperimentalCustomExecutors)
@available(StdlibDeploymentTarget 6.3, *)
public struct PlatformExecutorFactory: ExecutorFactory {
public static let mainExecutor: any MainExecutor = DispatchMainExecutor()
public static let defaultExecutor: any TaskExecutor =
DispatchGlobalTaskExecutor()
}
#endif // os(Windows)