This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-19
Channels
- # admin-announcements (2)
- # aws-lambda (3)
- # beginners (66)
- # boot (61)
- # cider (1)
- # cljs-dev (17)
- # clojure (100)
- # clojure-austin (4)
- # clojure-brasil (1)
- # clojure-canada (8)
- # clojure-quebec (6)
- # clojure-russia (48)
- # clojure-sg (6)
- # clojure-spec (37)
- # clojure-uk (61)
- # clojure-ukraine (2)
- # clojurescript (80)
- # core-async (13)
- # cursive (20)
- # datascript (37)
- # datomic (2)
- # defnpodcast (4)
- # emacs (5)
- # funcool (3)
- # hoplon (11)
- # jobs (7)
- # juxt (26)
- # lein-figwheel (48)
- # leiningen (3)
- # luminus (3)
- # om (34)
- # om-next (5)
- # onyx (5)
- # protorepl (6)
- # re-frame (10)
- # reagent (9)
- # rethinkdb (16)
- # ring-swagger (5)
- # spacemacs (14)
- # specter (54)
- # untangled (36)
- # vim (75)
- # yada (1)
You might want to look at pipeline-async
@alexmiller: is this a good and idiomatic example? https://gist.github.com/JacobNinja/5c98496a632e1a466cbf
(@ska @alexmiller I have the same question)
@fhanreich: It's pretty hard to find docs and good examples in this area, isn't it?
@ska yes. I’m struggling with it. Any recommendations (resource, etc), I’d highly appreciate it.
pipeline-async returns a channel, which can be closed to stop it's running. This isn't mentioned in it's docstring, can the behaviour be depended upon?
@ska that looks like a pretty good gist to me. I would recommend future
instead of async/go
in the af
. Be aware that while you are making the external request, you are tying up a thread in the (fixed size) a/go pool and can thus cause everything to block. The future thread pool can grow however so does not suffer from this issue.
@dominicm the docstring does not mention the result of pipeline-async, so I would not expect to use it for anything
@alexmiller Aside from the book Clojure Applied, which has been very helpful, are there any recommended resources to learn core.async (and Components) and put something (a small app) together for a beginner?
Tim Baldridge has a bunch of videos that illuminate a lot of things
https://www.youtube.com/watch?v=enwIIGzhahw and https://www.youtube.com/channel/UCLxWPHbkxjR-G-y6CVoEHOw/videos
thanks, @alexmiller