Fork me on GitHub
#core-async
<
2019-12-27
>
vemv16:12:20

in clojurescript, is it OK to perform IO in go/`go-loop` blocks? ...in JVM clj it certainly isn't, but maybe in cljs it doesn't matter given js IO doesn't block

quadron01:12:29

not sure, but aren't you supposed to use pipeline-blocking?

vemv01:12:54

:thinking_face: can't easily find pipeline-blocking in the cljs source (yes in docs though) in any case I asked because of existing code already using go etc. So yeah there are many possible kinds of fixes

mccraigmccraig11:12:38

it's blocking i/o that's problematic with core.async on the jvm, rather than i/o per se @U45T93RA6 - non-blocking i/o returning promises or channels is ok. js non-blocking i/o is fine too

didibus04:12:10

Ya, even on JVM non blocking IO is fine within a go block