Do you really need core.async for this? Seems like you can just normally call the service to get the token once at the beginning and then just go in a normal loop of calling for the next message -> handling message -> repeat.
I'm not sure there's any reason to use core.async in ClojureScript other then if you were doing a bunch of concurrent async IO. On Monday, 12 November 2018 05:46:17 UTC-8, Kashyap CK wrote: > > Hi all, > > I am attempting to use core.async to poll a service - > https://gist.github.com/ckkashyap/c8423dcfc3a3f28b67e18ae76cc13f53 > Broadly, I need to hit the service endpoint with a secret to get a token > and subsequently use the token to poll for messages. > > I'd appreciate any feedback on the approach - particularly around > 1. Error handling > 2. Use of channels > > Is there some project out there I could take a look at to learn the > right/good way to do this? > > Regards, > Kashyap > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.