@@ -27,16 +27,21 @@ public final class Signal<Value, Error: Swift.Error> {
2727 /// `Signal` ownership graph from the perspective of an operator.
2828 /// Note that there is no circular strong reference in the graph.
2929 /// ```
30- /// ------------ -------------- --------
31- /// | | | endObserve | | |
32- /// | | <~~ weak ~~~ | disposable | <== strong === | |
33- /// | | -------------- | | ... downstream(s)
34- /// | | ------------ | |
35- /// | upstream | === strong ==> | Observer | === strong ==> | Core |
36- /// ------------ ------------ --------
37- /// ------------------ ^^
38- /// | Signal (shell) | === strong ==//
39- /// ------------------
30+ /// ------------ -------------- --------
31+ /// | | | endObserve | | |
32+ /// | | <~~ weak ~~~ | disposable | <== strong === | |
33+ /// | | -------------- | | ... downstream(s)
34+ /// | Upstream | ------------ | |
35+ /// | Core | === strong ==> | Observer | === strong ==> | Core |
36+ /// ------------ ===\\ ------------ -------- ===\\
37+ /// \\ ------------------ ^^ \\
38+ /// \\ | Signal (shell) | === strong ==// \\
39+ /// \\ ------------------ \\
40+ /// || strong || strong
41+ /// vv vv
42+ /// ------------------- -------------------
43+ /// | Other observers | | Other observers |
44+ /// ------------------- -------------------
4045 /// ```
4146 private let core : Core
4247
@@ -327,8 +332,8 @@ public final class Signal<Value, Error: Swift.Error> {
327332 return commit ( )
328333 }
329334
330- /// Try to dispose of the signal silently if the `Signal` has deinitialized and has
331- /// no observer.
335+ /// Try to dispose of the signal silently if the `Signal` has deinitialized and
336+ /// has no observer.
332337 ///
333338 /// It fails gracefully if the signal is terminating or terminated, has one or
334339 /// more observers, or has not deinitialized.
@@ -358,11 +363,11 @@ public final class Signal<Value, Error: Swift.Error> {
358363 return . none
359364 }
360365
361- /// Acknowledge the deinitialization of the shell .
362- fileprivate func shellDidDeinitialize ( ) {
366+ /// Acknowledge the deinitialization of the `Signal` .
367+ fileprivate func signalDidDeinitialize ( ) {
363368 updateLock. lock ( )
364369
365- // Mark the `Signal` shell has now deinitialized.
370+ // Mark the `Signal` has now deinitialized.
366371 hasDeinitialized = true
367372
368373 // Attempt to start the disposal of the signal if it has no active observer.
@@ -414,7 +419,7 @@ public final class Signal<Value, Error: Swift.Error> {
414419 }
415420
416421 deinit {
417- core. shellDidDeinitialize ( )
422+ core. signalDidDeinitialize ( )
418423 }
419424
420425 /// The state of a `Signal`.
0 commit comments