You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stdlib/public/Distributed/DistributedActorSystem.swift
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ import _Concurrency
15
15
/// A distributed actor system underpins and implements all functionality of distributed actors.
16
16
///
17
17
/// A ``DistributedActor`` is always initialized in association with some concrete actor system.
18
-
/// And that actor system instance is then used to manage the identity of the actor, as well as
18
+
/// That actor system instance is then used to manage the identity of the actor, as well as
19
19
/// handle all remote interactions of the distributed actor.
20
20
///
21
21
/// ## Using a DistributedActorSystem library
@@ -28,7 +28,7 @@ import _Concurrency
28
28
/// `typealias DefaultDistributedActorSystem`. Refer to the ``DistributedActor`` documentation to learn more
29
29
/// about the tradeoffs of these approaches.
30
30
///
31
-
/// Once an actor has declared the system it is able to work with, such system instance must provided
31
+
/// Once an actor has declared the system it is able to work with, an instance of the system must be provided
32
32
/// at initialization time, in order for the system to be able to take over the actor's identity management.
33
33
///
34
34
/// For example, a simple distributed actor may look like this:
@@ -45,11 +45,11 @@ import _Concurrency
45
45
/// This property is later used for identity management and other remote interactions of the actor.
46
46
/// For more details refer to ``DistributedActor`` which explains more about declaring distributed actors.
47
47
///
48
-
/// For more details about how the specific actor system implementation deals with remote message transports,
48
+
/// For more details about how the specific actor system implementation deals with remote message transports
49
49
/// and serialization, please refer to the specific system's documentation.
50
50
///
51
51
/// > Note: For example, you may refer to the [Swift Distributed Actors cluster library](https://github.com/apple/swift-distributed-actors/) documentation,
52
-
/// > which is one example of such feature complete distributed actor system implementation:
52
+
/// > which is one example of such feature complete distributed actor system implementation.
53
53
///
54
54
/// ## Implementing a DistributedActorSystem
55
55
///
@@ -99,9 +99,9 @@ import _Concurrency
99
99
///
100
100
/// > Tip: Take note that throwing or failable initializers complicate this somewhat. Thankfully, the compiler
101
101
/// > will always emit the right code such that every ``assignID(_:)`` is balanced with a ``resignID(_:)`` call,
102
-
/// > when the actor either failed to initialize, or deinitialized property.
102
+
/// > when the actor either failed to initialize or deinitialize properly.
103
103
/// >
104
-
/// > It is also possible that a throwing initializer throws before assigning the actorSystem, and id properties.
104
+
/// > It is also possible that a throwing initializer throws before assigning the `actorSystem` and `id` properties.
105
105
/// > In such case, no `assignID` nor `resignID` calls are made. There is no risk of the compiler ever attempting
106
106
/// > to call a `resignID(_:)` without first having assigned given ID.
107
107
///
@@ -141,18 +141,18 @@ import _Concurrency
141
141
/// > Note: Generally actor systems should retain actors _weakly_ in order to allow them be deinitialized when no longer in use.
142
142
/// >
143
143
/// > Sometimes though, it can be quite useful to have the system retain certain "well known" actors, for example when it is expected
144
-
/// > that other nodes in the distributed system will need to interact with them, even if end-user code does no longer hold
144
+
/// > that other nodes in the distributed system will need to interact with them, even if end-user code no longer holds
145
145
/// > strong references to them. An example of such "retain while actor system is active" distributed actors would be any kind
146
146
/// > of actor which implements discovery or health check mechanisms between clustered nodes, sometimes called "system actors",
147
-
/// i.e. actors that serve the actor system directly.
147
+
/// > i.e. actors that serve the actor system directly.
148
148
///
149
-
/// Next, we will discuss the the just mentioned resolve method, which is closely tied to readying actors.
149
+
/// Next, we will discuss the just mentioned `resolve` method, which is closely tied to readying actors.
0 commit comments