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.
2 parents 8b93da9 + 6bf8e4b commit f3fc397Copy full SHA for f3fc397
src/frequenz/sdk/actor/__init__.py
@@ -49,6 +49,7 @@ class communicates through message passing. Even when no particular message pass
49
50
## Lifecycle
51
52
+
53
Actors are not started when they are created. There are 3 main ways to start an actor
54
(from most to least recommended):
55
@@ -80,7 +81,9 @@ class communicates through message passing. Even when no particular message pass
80
81
82
class MyActor(Actor):
83
async def _run(self) -> None:
- print("Hello World!")
84
+ while True:
85
+ print("Hello World!")
86
+ await asyncio.sleep(1)
87
88
await run(MyActor()) # (1)!
89
```
0 commit comments