Skip to content

Commit 167449f

Browse files
committed
[Concurrency] Fix a typo and use var not let.
Fix a typo that caused us to not include the correct code for platforms that use "singlethreaded" concurrency. Also use `var` not `let` for the computed property in `PlatformExecutorFactory`. rdar://141348916
1 parent ad5b76a commit 167449f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ if("${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR}" STREQUAL "dispatch")
177177
ExecutorImpl.swift
178178
)
179179
elseif("${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR}" STREQUAL "singlethreaded")
180-
set(SWIFT_RUNTIME_CONCURRENCYU_NONEMBEDDED_SWIFT_SOURCES
180+
set(SWIFT_RUNTIME_CONCURRENCY_NONEMBEDDED_SWIFT_SOURCES
181181
ExecutorImpl.swift
182182
PlatformExecutorCooperative.swift
183183
)

stdlib/public/Concurrency/PlatformExecutorCooperative.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ import Swift
1616
@available(SwiftStdlib 6.2, *)
1717
public struct PlatformExecutorFactory: ExecutorFactory {
1818
static let executor = CooperativeExecutor()
19-
public static let mainExecutor: any MainExecutor { executor }
20-
public static let defaultExecutor: any TaskExecutor { executor }
19+
public static var mainExecutor: any MainExecutor { executor }
20+
public static var defaultExecutor: any TaskExecutor { executor }
2121
}

0 commit comments

Comments
 (0)