Actors
+The following actors are available globally.
+ +-
+
-
+ ++
+ + + CurrentElementAsyncSequence +
++ +++ + +++A async sequence that wraps a single value and emits a new element whenever the element changes.
+
+ + See more +let sequence = CurrentElementAsyncSequence(0) +print(await sequence.element) + +await stream.yield(1) +print(await sequence.element) + +await stream.yield(2) +await stream.yield(3) +await stream.yield(4) +print(await sequence.element) + +// Prints: +// 0 +// 1 +// 4 +
++Declaration
+++Swift
+
+ +public actor CurrentElementAsyncSequence<Element> : AsyncSequence
+