@@ -77,6 +77,7 @@ class communicates through message passing. Even when no particular message pass
7777???+ example 
7878
7979    ```python 
80+     import asyncio 
8081    from frequenz.sdk.actor import Actor, run 
8182
8283    class MyActor(Actor): 
@@ -85,7 +86,7 @@ async def _run(self) -> None:
8586                print("Hello World!") 
8687                await asyncio.sleep(1) 
8788
88-     await run(MyActor()) # (1)! 
89+     await asyncio. run(MyActor()) # (1)! 
8990    ``` 
9091
9192    1. This line will block until the actor completes its execution or is manually stopped. 
@@ -187,27 +188,27 @@ class we are implementing to make sure actors are properly initialized.
187188    class EchoActor(Actor):  # (1)! 
188189        def __init__( 
189190                self, 
190-                 input : Receiver[int],  # (2)! 
191-                 output : Sender[int],  # (3)! 
191+                 receiver : Receiver[int],  # (2)! 
192+                 sender : Sender[int],  # (3)! 
192193                name: str | None = None,  # (4)! 
193194        ) -> None: 
194195            super().__init__(name=name) # (5)! 
195-             self._input: Receiver[int] = input   # (6)! 
196-             self._output: Sender[int] = output   # (7)! 
196+             self._input: Receiver[int] = receiver   # (6)! 
197+             self._output: Sender[int] = sender   # (7)! 
197198    ``` 
198199
199200    1. We define a new actor class called `EchoActor` that inherits from 
200201        [`Actor`][frequenz.sdk.actor.Actor]. 
201202
202-     2. We accept an `input ` argument that will be used to receive messages from 
203+     2. We accept an `receiver ` argument that will be used to receive messages from 
203204        a channel. 
204-     3. We accept an `output ` argument that will be used to send messages to a channel. 
205+     3. We accept an `sender ` argument that will be used to send messages to a channel. 
205206    4. We accept an optional `name` argument that will be used to identify the actor in 
206207        logs. 
207208    5. We call [`Actor.__init__()`][frequenz.sdk.actor.Actor.__init__] to make sure the 
208209        actor is properly initialized. 
209-     6. We store the `input ` argument in a *private* attribute to use it later. 
210-     7. We store the `output ` argument in a *private* attribute to use it later. 
210+     6. We store the `receiver ` argument in a *private* attribute to use it later. 
211+     7. We store the `sender ` argument in a *private* attribute to use it later. 
211212
212213### The `_run()` Method 
213214
0 commit comments