Fork me on GitHub
#core-async
<
2020-06-13
>
Ian Fernandez03:06:02

Guys, how can I make the send-image-to-contacts! function?

souenzzo14:06:21

@d.ian.b do client/sendFile return a promise? If yes, it should be (go (<!p (.sendFile client ...)))

Ian Fernandez14:06:41

How I see if client/sendFile returns a promise?

Ian Fernandez14:06:28

it returns an #object[cljs.core.async.impl.channels.ManyToManyChannel]

souenzzo15:06:07

it was the retorn of core.async/go

souenzzo15:06:57

do something like (go (def __dbg (<! (send-image-to-contact! ...)))) and checkout __dbg after some seconds

Ian Fernandez15:06:30

_dbg ;; =>#object[cljs.core.async.impl.channels.ManyToManyChannel]

souenzzo15:06:38

.sendFile is returning a cljs.core.async?