Fork me on GitHub

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


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


: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


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


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