File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog #
22
3- ## Version 2021.06-03-0 ##
3+ ## Version 2021.07.05-1 ##
4+
5+ - Fix bug on ` delay-emit ` operator.
6+ - Minor change on ` concat-reduce ` operator.
7+
8+ ## Version 2021.07.05-0 ##
9+
10+ - Add ` flatten ` operator.
11+ - Add ` delay-emit ` operator.
12+ - Add ` skip-last ` operator.
13+ - Add ` concat-reduce ` operator.
14+
15+
16+ ## Version 2021.06.03-0 ##
417
518BREAKING CHANGES: ` zip ` no longer accepts acoomulator function.
619
Original file line number Diff line number Diff line change 44 <groupId >funcool</groupId >
55 <artifactId >beicon</artifactId >
66 <packaging >jar</packaging >
7- <version >2021.06.03-0 </version >
7+ <version >2021.07.05-1 </version >
88 <name >beicon</name >
99 <description >Reactive Streams for Clojure(Script)</description >
1010 <url >https://github.com/funcool/beicon</url >
Original file line number Diff line number Diff line change 711711(defn delay-emit
712712 " Time shift the observable but also increase the relative time between emisions."
713713 [ms ob]
714- (pipe ob ( mapcat #(delay ms (of %))) ))
714+ (mapcat #(delay ms (of %)) ob ))
715715
716716(defn delay-when
717717 " Time shifts the observable sequence based on a subscription
744744 value for the next step in the reduce the last valued emited by the stream
745745 in the function."
746746 [f seed ob]
747- (let [current-acc (atom seed)]
747+ (let [current-acc (volatile! seed)]
748748 (->> (concat
749749 (of seed)
750750 (->> ob
751751 (mapcat #(f @current-acc %))
752- (tap #(reset ! current-acc %))))
752+ (tap #(vreset ! current-acc %))))
753753 (last ))))
754754
755755; ; --- Schedulers
You can’t perform that action at this time.
0 commit comments