From 686821d25e8321ba96b1dfd95256ada3c6362059 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sat, 12 Nov 2022 00:34:48 +0100 Subject: [PATCH] bump v1.34.0 --- CHANGELOG.md | 9 ++++++++- README.md | 5 +++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e78ea4f..ca3f63d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,18 @@ @samber: I sometimes forget to update this file. Ping me on [Twitter](https://twitter.com/samuelberthe) or open an issue in case of error. We need to keep a clear changelog for easier lib upgrade. -## 1.34.0 (2022-10-xx) +## 1.34.0 (2022-11-12) Improving: - lo.Union: faster and can receive more than 2 lists +Adding: +- lo.FanIn (alias to lo.ChannelMerge) +- lo.FanOut + +Deprecation: +- lo.ChannelMerge + ## 1.33.0 (2022-10-14) Adding: diff --git a/README.md b/README.md index 09712ec8..210817d6 100644 --- a/README.md +++ b/README.md @@ -1538,7 +1538,7 @@ for i := range children { ### FanIn -Collects messages from multiple input channels into a single buffered channel. Output messages has no priority. When all upstream channels reach EOF, downstream channel closes. +Merge messages from multiple input channels into a single buffered channel. Output messages has no priority. When all upstream channels reach EOF, downstream channel closes. ```go stream1 := make(chan int, 42) @@ -1546,6 +1546,7 @@ stream2 := make(chan int, 42) stream3 := make(chan int, 42) all := lo.FanIn(100, stream1, stream2, stream3) +// <-chan int ``` ### FanOut @@ -1555,7 +1556,7 @@ Broadcasts all the upstream messages to multiple downstream channels. When upstr ```go stream := make(chan int, 42) -all := lo.FanOut(5, 42, stream) +all := lo.FanOut(5, 100, stream) // [5]<-chan int ```