You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove `MergeNamed`
- Add a `merge()` wrapper function that replaces `Merge`
- Rename `Merge` to `_Merge` to make it private more explicitly
- Rename `_Merge` variable `args` to `receivers`
- Improve string representation of merge receiver
- Raise an exception is `merge()` is called with less than two receivers
Fixes#236, fixes#237.
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,6 @@
53
53
54
54
* The following symbols were moved to the top-level `frequenz.channels` package:
55
55
56
-
-`Merge`
57
-
-`MergeNamed`
58
56
-`Selected`
59
57
-`SelectError`
60
58
-`SelectErrorGroup`
@@ -68,6 +66,14 @@
68
66
69
67
This channel was removed as it is not recommended practice and was a niche use case. If you need to use it, you can set up two channels or copy the `Bidirectional` class from the previous version to your project.
70
68
69
+
*`Merge`
70
+
71
+
Replaced by the new `merge()` function. When replacing `Merge` with `merge()` please keep in mind that this new function will raise a `ValueError` if no receivers are passed to it.
72
+
73
+
*`MergeNamed`
74
+
75
+
This class was redundant, use either the new `merge()` function or `select()` instead.
76
+
71
77
*`Peekable`
72
78
73
79
This class was removed because it was merely a shortcut to a receiver that caches the last value received. It did not fit the channel abstraction well and was infrequently used.
@@ -92,6 +98,8 @@
92
98
93
99
## New Features
94
100
101
+
* A new `merge()` function was added to replace `Merge`.
102
+
95
103
*`Anycast`
96
104
97
105
- The following new read-only properties were added:
@@ -126,14 +134,6 @@
126
134
127
135
- A more useful implementation of `__str__ and `__repr__` were added.
128
136
129
-
*`Merge`
130
-
131
-
- A more useful implementation of `__str__ and `__repr__` were added.
132
-
133
-
*`MergeNamed`
134
-
135
-
- A more useful implementation of `__str__ and `__repr__` were added.
136
-
137
137
*`Peekable`
138
138
139
139
- A more useful implementation of `__str__ and `__repr__` were added.
0 commit comments