We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream
From adamfrey on slack :
adamfrey
(do ;; keeping track of how many times the fl flow runs (def *run-count (atom 0)) (def fl (m/ap (let [i (m/?> (m/seed (range 10)))] (swap! *run-count inc) i))) ;; creating a publisher for multiple subscribers (def fl-stream (m/stream fl)) (defn my-rf ([] []) ([acc] acc) ([acc x] (println "rf" x) (conj acc x))) (def joined (m/join vector (m/reduce my-rf (m/eduction (map #(* % 10)) fl-stream)) (m/reduce my-rf (m/eduction (map #(* % 100)) fl-stream)))) ;; (m/? joined) hangs forever (joined prn prn) ;; only reduces the first eduction ;; question: am I incorrectly initializing multiple subscribers to my stream? @*run-count )
Notes :
m/memo
m/join
The text was updated successfully, but these errors were encountered:
Why does it need memo?
Sorry, something went wrong.
No branches or pull requests
From
adamfrey
on slack :Notes :
m/memo
afterm/join
, the pattern is not obvious and should be documented.The text was updated successfully, but these errors were encountered: