This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-10
Channels
- # announcements (3)
- # asami (19)
- # babashka (38)
- # beginners (42)
- # cider (19)
- # clojure (17)
- # clojure-europe (34)
- # clojure-hungary (3)
- # clojure-nl (1)
- # clojure-norway (53)
- # clojure-uk (7)
- # clojuredesign-podcast (34)
- # conjure (2)
- # cursive (7)
- # data-science (13)
- # datalevin (3)
- # datomic (19)
- # dev-tooling (1)
- # events (1)
- # honeysql (2)
- # hyperfiddle (31)
- # integrant (16)
- # juxt (39)
- # missionary (14)
- # nrepl (14)
- # off-topic (57)
- # overtone (22)
- # podcasts-discuss (1)
- # practicalli (32)
- # reitit (12)
- # releases (2)
- # ring (13)
- # ring-swagger (2)
- # sql (85)
- # squint (75)
Working on this gist: https://gist.github.com/telekid/c15ef0fe8fd8d47f36c3655d9e143f4b#file-debug-clj-L32
This program should play a very basic song, as described in https://gist.github.com/telekid/c15ef0fe8fd8d47f36c3655d9e143f4b#file-debug-clj-L35-L43
that is, the following is printed at the repl:
:c4 :start
:c4 :stop ;; three seconds later
:c5 :start ;; one second later
:c5 :stop ;; one second later
nil
user>
as far as I can tell, this is happening because my after
function isn't liking something about the flow returned by m/watch
but it isn't obvious to me what would differ from the flow returned by m/watch
vs the flow returned by m/ap
the flow returned by watch
is continuous while the flow returned by ap
is discrete, but I don't think that matters in this context
I think you want to terminate after first successful sleep, you can do that in the m/reduce
stage
Replace {}
with (comp reduced {})