Skip to content

Update 0420-inheritance-of-actor-isolation.md #2330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions proposals/0420-inheritance-of-actor-isolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ it can be passed an arbitrary function and work with arbitrary types.
But if it's called from an *isolated* asynchronous function, Swift will
treat the call as crossing an isolation barrier and enforce three restrictions:

- First, the result of the call must be `Sendbale`. This restriction prevents
- First, the result of the call must be `Sendable`. This restriction prevents
`next()` from being used from an actor to produce non-`Sendable` element
values.

Expand Down Expand Up @@ -250,7 +250,7 @@ extension DistributedActor {
/// as only a local distributed actor can be isolated on and may be automatically
/// erased to such `any Actor` when calling methods implicitly accepting the
/// caller's actor isolation, e.g. by using the `#isolation` macro.
@backDeployed(before: SwiftStdlib 5.11)
@backDeployed(before: SwiftStdlib 6.0)
public var asLocalActor: any Actor {
}
```
Expand Down