Skip to content

Add discussion of main actor and @globalActor [SE-0316] #366

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

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

amartini51
Copy link
Member

In the past, TSPL largely depended on the API reference for the MainActor type to document its use as an attribute. However, the role of the main actor is more important in the Swift 6.2 flavor of concurrency, so we need to discuss it in the book as part of the conceptual framing.

Fixes: rdar://80904458

amartini51 added 2 commits May 6, 2025 15:04
This works around a known issue in DocC:

    swiftlang/swift-markdown#88

With the tilde underlines, @mainactor in code was being treated as a
DocC at-directive, leading to incorrect output
This reverts most of commit f3e96e4.
Removing the tildes is much better than nonbreaking spaces in code.
Copy link

@colleenish colleenish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass edits.

@amartini51 amartini51 marked this pull request as ready for review May 12, 2025 20:25
Edits from <rdar://150711369>

Co-authored-by: Colleen Toporek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants