core-async

2020-06-13T03:21:02.478400Z

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

souenzzo 2020-06-13T14:11:21.479800Z

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

2020-06-13T14:51:41.480100Z

How I see if client/sendFile returns a promise?

2020-06-13T14:59:28.480500Z

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

souenzzo 2020-06-13T15:04:07.481100Z

it was the retorn of core.async/go

souenzzo 2020-06-13T15:06:57.482Z

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

2020-06-13T15:09:30.482200Z

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

souenzzo 2020-06-13T15:10:38.482800Z

.sendFile is returning a cljs.core.async?

2020-06-13T15:11:27.483Z

yup