PubSub channel or pattern subscription with an optional handler.
| 148 | |
| 149 | @dataclass(frozen=True) |
| 150 | class Subscription: |
| 151 | """PubSub channel or pattern subscription with an optional handler.""" |
| 152 | |
| 153 | name: ChannelT |
| 154 | handler: PubSubHandler | None = None |
| 155 | |
| 156 | |
| 157 | class CommandsProtocol(Protocol): |
no outgoing calls