Skip to content

Commit 9f0ab3a

Browse files
committed
Remove some mentions to channels in sender and receiver
Receivers are not necessarily attached to a channel, as we already have some utility receivers that generates messages from other sources (like time, files or arbitrary events). For senders we don't have that yet, but there is also no reason to limit them to channels. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 8b7a65b commit 9f0ab3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/frequenz/channels/_receiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __aiter__(self) -> Self:
199199
return self
200200

201201
async def receive(self) -> _T_co:
202-
"""Receive a message from the channel.
202+
"""Receive a message.
203203
204204
Returns:
205205
The received message.

src/frequenz/channels/_sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Sender(ABC, Generic[_T_contra]):
6262

6363
@abstractmethod
6464
async def send(self, msg: _T_contra) -> None:
65-
"""Send a message to the channel.
65+
"""Send a message.
6666
6767
Args:
6868
msg: The message to be sent.

0 commit comments

Comments
 (0)