Skip to content

Commit

Permalink
Adds delay-emit operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Alotor authored and niwinz committed Jul 5, 2021
1 parent f46b1a4 commit f066916
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/beicon/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 708,11 @@
[ms ob]
(pipe ob (.delay ^js rxop ms)))

(defn delay-emit
"Time shift the observable but also increase the relative time between emisions."
[ms ob]
(pipe ob (mapcat #(delay ms (of %)))))

(defn delay-when
"Time shifts the observable sequence based on a subscription
delay and a delay selector function for each element."
Expand Down

0 comments on commit f066916

Please sign in to comment.