Skip to content

Commit 7fc52b1

Browse files
committed
Clarify the introduction of isolated conformances.
1 parent 439e38b commit 7fc52b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,13 +1595,13 @@ as discussed in <doc:Protocols#Implicit-Conformance-to-a-Protocol>.
15951595

15961596
Protocols that are nonisolated
15971597
can be used from anywhere in a concurrent program.
1598-
An implementation of a nonisolated protocol conformance
1599-
can still use global actor isolated state.
1600-
A conformance that needs global actor isolated state
1601-
is called an *isolated* conformance.
1598+
A conformance to a nonisolated protocol can be isolated
1599+
to a global actor, which allows the implementation to
1600+
access actor isolated state synchronously.
1601+
This is called an *isolated conformance*.
16021602
When a conformance is isolated,
16031603
Swift prevents data races by ensuring that
1604-
the conformance is only used on the global actor
1604+
the conformance is only used on the actor
16051605
that the conformance is isolated to.
16061606

16071607
### Declaring an Isolated Conformance

0 commit comments

Comments
 (0)