Fork me on GitHub
#core-async
<
2017-03-15
>
mike_ananev10:03:00

hi! what is the right way to run promise-chan? doc for promise-chan says that" Consumers will block until either a value is placed in the channel...". can i use ususal go block to get value from promise-chan? or i should use thread macro?

mike_ananev10:03:21

i'm working with elastic search using Spandex lib which provides async operations using promise-chan

mpenet10:03:00

It's just a chan, so yes

mike_ananev10:03:40

@mpenet thanks for lib and advice!

mpenet10:03:59

And spandex request-chan does no blocking IO, so it s "go safe"