Guys, how can I make the send-image-to-contacts!
function?
@d.ian.b do client/sendFile
return a promise?
If yes, it should be (go (<!p (.sendFile client ...)))
How I see if client/sendFile
returns a promise?
it returns an #object[cljs.core.async.impl.channels.ManyToManyChannel]
it was the retorn of core.async/go
do something like (go (def __dbg (<! (send-image-to-contact! ...))))
and checkout __dbg
after some seconds
_dbg
;; =>#object[cljs.core.async.impl.channels.ManyToManyChannel]
.sendFile
is returning a cljs.core.async?
yup