core-async

souenzzo 2019-01-08T01:51:54.039200Z

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

souenzzo 2019-01-08T01:59:02.039600Z

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

2019-01-08T02:03:35.040400Z

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

2019-01-08T04:07:55.041Z

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

fmjrey 2019-01-08T17:04:53.041900Z

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

fmjrey 2019-01-08T17:05:20.042400Z

Use the up channel to send a close instruction

fmjrey 2019-01-08T17:06:02.043Z

or just reimplement the protocols as you need