This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-11
Channels
- # announcements (2)
- # asami (10)
- # aws (2)
- # babashka (28)
- # beginners (103)
- # calva (2)
- # clj-kondo (10)
- # clojure (69)
- # clojure-austin (11)
- # clojure-europe (48)
- # clojure-nl (10)
- # clojure-switzerland (1)
- # clojure-uk (2)
- # clojurescript (6)
- # conjure (2)
- # consulting (1)
- # core-async (2)
- # core-typed (2)
- # cursive (5)
- # datomic (15)
- # jobs (1)
- # malli (4)
- # meander (7)
- # membrane (26)
- # missionary (6)
- # nbb (39)
- # reagent (3)
- # releases (1)
- # ring (3)
- # shadow-cljs (28)
- # spacemacs (2)
- # sql (6)
- # vim (5)
What does m/?
mean when called on a continuous flow? When it's called on a discrete flow then it would park until there's a value. There's supposed to always be a value on a signal though, right? I noticed it https://github.com/hyperfiddle/photon/blob/fbf11927b4ab9f75a113c71d616a49dfcd2c9140/src/hyperfiddle/zero.cljc#L62.
👀 1
the parameter here is meant to be a missionary discrete flow (lifted into photon) regardless, i did not know that m/? is defined on discrete flows, i thought it was task only, so i am confused by the linked snippet
Maybe flows satisfy the task interface. 🤷
A task is a 2-arity function taking a success continuation as first argument and a failure continuation as second argument. It must return a canceller, ... A call to a task function starts the execution of underlying operation, eventually calling one of the two continuations with a result.
A flow is a function provided by the producer taking two arguments, a notifier and a terminator. ...
A notifier is a zero-argument function provided by the consumer. It is called by the producer each time it becomes ready to transfer a value ...
A terminator is a zero-argument function provided by the consumer. It is called exactly once by the producer when the process instance has no more values to transfer and all of its resources have been released