We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36bc923 commit da4f56eCopy full SHA for da4f56e
src/frequenz/sdk/actor/__init__.py
@@ -132,6 +132,13 @@ async def main() -> None: # (2)!
132
[senders][frequenz.channels.Sender] and
133
[receivers][frequenz.channels.Receiver] from the channels.
134
135
+ !!! note
136
+
137
+ We don't use the [`run()`][frequenz.sdk.actor.run] function here because we
138
+ want to stop the actors when we are done with them, but the actors will run
139
+ forever (as long as the channel is not closed). So the async context manager
140
+ is a better fit for this example.
141
142
6. We schedule the [sending][frequenz.channels.Sender.send] of the message
143
`Hello` to `Actor1` via `input_channel`.
144
0 commit comments