core-async

itsknk 2021-05-11T11:14:56.152900Z

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

2021-05-11T12:45:08.153400Z

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

itsknk 2021-05-11T13:00:15.153700Z

view it.

2021-05-11T13:13:49.153900Z

there is this: http://tgk.github.io/2013/10/inspect-core-async-channels.html

itsknk 2021-05-11T13:19:23.154300Z

thank you!

ghadi 2021-05-11T13:24:04.154400Z

Yeah don’t do that

ghadi 2021-05-11T13:24:51.155500Z

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

ghadi 2021-05-11T13:25:55.157100Z

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

2021-05-11T13:43:24.158Z

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

itsknk 2021-05-11T14:36:15.158400Z

okay