This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-08
Channels
- # announcements (9)
- # babashka (17)
- # beginners (26)
- # biff (2)
- # calva (5)
- # cider (11)
- # clara (6)
- # clojure (48)
- # clojure-europe (34)
- # clojure-nl (1)
- # clojure-norway (34)
- # clojure-uk (2)
- # clojurescript (22)
- # clr (11)
- # code-reviews (5)
- # conjure (3)
- # datomic (26)
- # emacs (14)
- # fulcro (10)
- # hyperfiddle (70)
- # lsp (34)
- # malli (5)
- # missionary (5)
- # off-topic (34)
- # releases (1)
- # shadow-cljs (19)
- # tree-sitter (1)
- # xtdb (25)
Hi there, I'm collecting a batch of updates that are reduced through an m/reductions
and ultimately returns a map. The last step of the flow is an m/reduce
which takes the map and makes an asynchronous update.
I would like to throttle the m/reduce
and only call it max once per every pre-defined interval. Is there a Missionary primitive for achieving this or should I just implement a generic throttle helper?
> an m/reduce
which takes the map and makes an asynchronous update
this looks like a smell to me, if async is needed you need an intermediate m/ap
stage before final reduction
Sorry I wasn't being super precise with my description. It's a call to update application state in the client/browser, and the event is dispatched to a scheduler that batches updates together
Specifically calling a dispatch!
event in the context of this https://github.com/clj-commons/citrus library to update application state
Technically it is an asynchronous call but I don't need to wait for results or anything. Would it still make sense to use an intermediate m/ap
stage?