File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/frequenz/channels/experimental Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11# License: MIT
22# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
33
4- """Predicates to be used in conjuntion with `Receiver.filter()` ."""
4+ """Composable predicate to cache and compare with the previous message ."""
55
66
77from typing import Callable , Final , Generic , TypeGuard
@@ -21,9 +21,9 @@ def __str__(self) -> str:
2121
2222
2323class WithPrevious (Generic [ChannelMessageT ]):
24- """A predicate to check if a message has a particular relationship with the previous one .
24+ """A composable predicate to build predicates that can use also the previous message .
2525
26- This predicate can be used to filter out messages based on a custom condition on the
26+ This predicate can be used to filter messages based on a custom condition on the
2727 previous and current messages. This can be useful in cases where you want to
2828 process messages only if they satisfy a particular condition with respect to the
2929 previous message.
You can’t perform that action at this time.
0 commit comments