Fork me on GitHub
#core-async
<
2021-05-11
>
itsknk11:05:56

(>!! (:channel channel) {:msg-type :update :data {:msg value}})
How can I read the value from this channel?

otfrom12:05:08

as in view the message on the channel (view the channel contents) or read the value off the channel?

itsknk13:05:23

thank you!

ghadi13:05:04

Yeah don’t do that

ghadi13:05:51

That is expert level impl breakage and not something useful day-to-day

ghadi13:05:55

The core.async API allows putting things into a channel and taking things out. There no such thing as a “view” or “get,” just put and take

otfrom13:05:24

yeah, I've only used things like that for debugging things (there is another post somewhere on doing that w/o doing a new protocol). It at least let me see that things were languishing on a particular channel while I was trying to set up the flow of things