Fork me on GitHub
#core-async
<
2017-01-09
>
stijn21:01:08

is it safe to use side-effecting operations in a transducer on a pipeline-blocking?

stijn21:01:15

as in: the side effect will only be executed once

hiredman21:01:02

it is complicated, what do you mean by side-effecting? there are transducers that use mutable state internally, and those generally don't work.

hiredman21:01:29

something like (map (fn [x] (rest-call x))) should be fine

stijn21:01:00

the transducer is a composition of map and filter's

angusiguess23:01:29

By side effecting do you mean i/o?

angusiguess23:01:12

As @hiredman points out, stateful transducers get a bit weird because they don't coordinate across pipeline workers.

angusiguess23:01:33

But i/o shouldn't execute multiple times.