diff --git a/test/Concurrency/nonisolated_inherits_isolation.swift b/test/Concurrency/nonisolated_inherits_isolation.swift index 1996ad4cb4567..ec1e6d8211d84 100644 --- a/test/Concurrency/nonisolated_inherits_isolation.swift +++ b/test/Concurrency/nonisolated_inherits_isolation.swift @@ -5,7 +5,7 @@ // REQUIRES: concurrency // REQUIRES: swift_feature_NonisolatedNonsendingByDefault -// This test checks and validates that when AsyncCallerExecution is enabled, we emit the +// This test checks and validates that when NonisolatedNonsendingByDefault is enabled, we emit the // appropriate diagnostics. It also runs with the mode off so we can validate // and compare locally against the normal errors. diff --git a/userdocs/diagnostics/async-caller-execution.md b/userdocs/diagnostics/nonisolated-nonsending-by-default.md similarity index 79% rename from userdocs/diagnostics/async-caller-execution.md rename to userdocs/diagnostics/nonisolated-nonsending-by-default.md index fea7c70b4b94b..9d44276e3d604 100644 --- a/userdocs/diagnostics/async-caller-execution.md +++ b/userdocs/diagnostics/nonisolated-nonsending-by-default.md @@ -1,4 +1,4 @@ -# `AsyncCallerExecution` +# `NonisolatedNonsendingByDefault` Proposed in [SE-0461], this feature changes the behavior of nonisolated async functions to run on the actor to which the caller is isolated (if any) by @@ -9,9 +9,9 @@ This feature was proposed in [SE-0461](https://github.com/swiftlang/swift-evolut * The `@concurrent` attribute specifies that a function must always switch off of an actor to run. - This is the default behavior without `AsyncCallerExecution`. + This is the default behavior without `NonisolatedNonsendingByDefault`. * The `nonisolated(nonsending)` modifier specifies that a function must always run on the caller's actor. - This is the default behavior with `AsyncCallerExecution`. + This is the default behavior with `NonisolatedNonsendingByDefault`. [SE-0461]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0461-async-function-isolation.md diff --git a/userdocs/diagnostics/sending-risks-data-race.md b/userdocs/diagnostics/sending-risks-data-race.md index 2e6247b05756e..97d58925c0025 100644 --- a/userdocs/diagnostics/sending-risks-data-race.md +++ b/userdocs/diagnostics/sending-risks-data-race.md @@ -49,4 +49,4 @@ func onMainActor(person: Person) async { This eliminates the risk of data-races because `printNameConcurrently` continues to run on the main actor, so all access to `person` is serialized. -You can also enable the `AsyncCallerExecution` upcoming feature to make `nonisolated(nonsending)` the default for async functions on non-`Sendable` types. +You can also enable the `NonisolatedNonsendingByDefault` upcoming feature to make `nonisolated(nonsending)` the default for async functions on non-`Sendable` types.