Fork me on GitHub
#core-async
<
2019-01-08
>
souenzzo01:01:54

there is some chan/port that always return a value, but can be closed?

souenzzo01:01:02

I think that I can reify impl/UnblockingBuffer impl/Buffer

noisesmith02:01:35

this might not be what you are looking for, but a promise-chan always returns the first value it received, even after closed

hiredman04:01:55

or you could just create a go loop that constantly adds the same value to a channel

fmjrey17:01:53

Something like the duplex channel from kinsky could be of inspiration: https://github.com/pyr/kinsky/blob/master/src/kinsky/async.clj#L10

fmjrey17:01:20

Use the up channel to send a close instruction

fmjrey17:01:02

or just reimplement the protocols as you need