|
1 | 1 | # License: MIT |
2 | 2 | # Copyright © 2022 Frequenz Energy-as-a-Service GmbH |
3 | 3 |
|
4 | | -"""Channel implementations.""" |
| 4 | +"""Frequenz Channels. |
| 5 | +
|
| 6 | +This package contains |
| 7 | +[channel](https://en.wikipedia.org/wiki/Channel_(programming)) implementations. |
| 8 | +
|
| 9 | +Channels: |
| 10 | +
|
| 11 | +* [Anycast][frequenz.channels.Anycast]: A channel that supports multiple |
| 12 | + senders and multiple receivers. A message sent through a sender will be |
| 13 | + received by exactly one receiver. |
| 14 | +
|
| 15 | +* [Bidirectional][frequenz.channels.Bidirectional]: A channel providing |
| 16 | + a `client` and a `service` handle to send and receive bidirectionally. |
| 17 | +
|
| 18 | +* [Broadcast][frequenz.channels.Broadcast]: A channel to broadcast messages |
| 19 | + from multiple senders to multiple receivers. Each message sent through any of |
| 20 | + the senders is received by all of the receivers. |
| 21 | +
|
| 22 | +Other base classes: |
| 23 | +
|
| 24 | +* [Peekable][frequenz.channels.Peekable]: An object to allow users to get |
| 25 | + a peek at the latest value in the channel, without consuming anything. |
| 26 | +
|
| 27 | +* [Receiver][frequenz.channels.Receiver]: An object that can wait for and |
| 28 | + consume messages from a channel. |
| 29 | +
|
| 30 | +* [Sender][frequenz.channels.Sender]: An object that can send messages to |
| 31 | + a channel. |
| 32 | +
|
| 33 | +Utilities: |
| 34 | +
|
| 35 | +* [util][frequenz.channels.util]: A module with utilities, like special |
| 36 | + receivers that implement timers, file watchers, merge receivers, or wait for |
| 37 | + messages in multiple channels. |
| 38 | +
|
| 39 | +Exception classes: |
| 40 | +
|
| 41 | +* [ChannelError][frequenz.channels.ChannelError]: Base class for all errors |
| 42 | + related to channels. |
| 43 | +
|
| 44 | +* [ChannelClosedError][frequenz.channels.ChannelClosedError]: Error raised when |
| 45 | + trying to operate (send, receive, etc.) through a closed channel. |
| 46 | +""" |
5 | 47 |
|
6 | 48 | from . import util |
7 | 49 | from ._anycast import Anycast |
|
0 commit comments