From 0e103326f0d9c406022cd389889375532c92103d Mon Sep 17 00:00:00 2001 From: Aleksandr Kazak-Kazakevich Date: Fri, 13 Nov 2026 00:20:40 +0100 Subject: [PATCH] [Proposals] Fix Typos in SE-0327 and SE-0417 --- proposals/0327-actor-initializers.md | 2 +- proposals/0417-task-executor-preference.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proposals/0327-actor-initializers.md b/proposals/0327-actor-initializers.md index f5bfe3feda..fefdc9cb8b 100644 --- a/proposals/0327-actor-initializers.md +++ b/proposals/0327-actor-initializers.md @@ -475,7 +475,7 @@ actor Status { var valid: Bool // an isolated method - func exchange(with new: Bool) { + func exchange(with new: Bool) -> Bool { let old = valid valid = new return old diff --git a/proposals/0417-task-executor-preference.md b/proposals/0417-task-executor-preference.md index 9f0d5848fd..1588cafb14 100644 --- a/proposals/0417-task-executor-preference.md +++ b/proposals/0417-task-executor-preference.md @@ -194,7 +194,7 @@ Task(executorPreference: preferredExecutor) { In order to fulfil the requirement that we'd like default actors to run on a task executor, if it was set, we need to introduce a new kind of executor. This stems from the fact that `SerialExecutor` and how a default actor effectively acts as an executor "for itself" in Swift. -A default actor (so an actor which does not use a custom executor), has a "default" serial executor that is created by the Swift runtime and uses the actor is the executor's identity. +A default actor (so an actor which does not use a custom executor), has a "default" serial executor that is created by the Swift runtime and uses the actor as the executor's identity. This means that the runtime executor tracking necessarily needs to track that some code is executing on a specific serial executor in order for things like `assumeIsolated` or the built-in runtime thread-safety checks can utilize them. The new protocol mirrors `Executor` and `SerialExecutor` in API, however it provides different semantics, and is tracked using a different mechanism at runtime -- by obtaining it from a task's executor preference record.