Skip to content

Commit 39f7736

Browse files
authored
Merge pull request #67464 from ktoso/pick-executor-docs-typo
2 parents 3671202 + 1fe31c7 commit 39f7736

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public protocol SerialExecutor: Executor {
8989
///
9090
/// This check is not used when performing executor switching.
9191
///
92-
/// This check is used when performing `preconditionTaskOnActorExecutor`, `preconditionTaskOnActorExecutor`,
93-
/// `assumeOnActorExecutor` and similar APIs which assert about the same "exclusive serial execution context".
92+
/// This check is used when performing ``Actor/assertIsolated()``, ``Actor/preconditionIsolated()``,
93+
/// ``Actor/assumeIsolated()`` and similar APIs which assert about the same "exclusive serial execution context".
9494
///
9595
/// - Parameter other: the executor to compare with.
9696
/// - Returns: true, if `self` and the `other` executor actually are mutually exclusive

test/Concurrency/Runtime/actor_assert_precondition_executor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ actor Someone {
7474

7575
// FIXME: calling without await from main() should also succeed, we must set the executor while we're kicking off main
7676

77-
tests.test("preconditionTaskOnActorExecutor(main): from Main friend") {
77+
tests.test("MainActor.preconditionIsolated(): from Main friend") {
7878
await MainFriend().callCheckMainActor()
7979
}
8080

0 commit comments

Comments
 (0)