Skip to content

Commit b411e23

Browse files
committed
[Concurrency] Fix some comments and a typo.
There were a couple of comments that needed updating, and a typo in a function name. rdar://141348916
1 parent f0016be commit b411e23

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ extension Task where Success == Never, Failure == Never {
592592
/// 2. The preferred executor for the currently executing `Task`, or
593593
/// 3. The task executor for the current thread
594594
///
595-
/// If none of these exist, this property will be `nil`.
595+
/// If none of these exist, returns the default executor.
596596
@available(SwiftStdlib 6.2, *)
597597
@_unavailableInEmbedded
598598
public static var currentExecutor: any Executor {

stdlib/public/Concurrency/ExecutorImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal func drainMainQueue() {
3333

3434
@available(SwiftStdlib 6.2, *)
3535
@_silgen_name("swift_task_donateThreadToGlobalExecutorUntilImpl")
36-
internal func dontateToGlobalExecutor(
36+
internal func donateToGlobalExecutor(
3737
condition: @convention(c) (_ ctx: UnsafeMutableRawPointer) -> CBool,
3838
context: UnsafeMutableRawPointer
3939
) {

test/Concurrency/Runtime/clocks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct TockingClock: Clock {
144144

145145
// These are a bit of a lie, since this clock is weird and doesn't
146146
// actually tell the time; for the purposes of this test, we pretend
147-
// that the tocks are 20ms.
147+
// that the tocks are 10ms.
148148
func convert(from duration: Duration) -> Swift.Duration? {
149149
return .seconds(Double(duration.tocks) / 100)
150150
}

0 commit comments

Comments
 (0)