This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-18
Channels
- # admin-announcements (1)
- # beginners (4)
- # boot (18)
- # cider (4)
- # cljsrn (17)
- # clojure (77)
- # clojure-austin (6)
- # clojure-greece (6)
- # clojure-spec (81)
- # clojure-uk (6)
- # clojurescript (32)
- # code-art (2)
- # core-async (12)
- # cursive (1)
- # datomic (1)
- # emacs (15)
- # funcool (1)
- # hoplon (108)
- # om (9)
- # onyx (83)
- # planck (1)
- # re-frame (3)
- # reagent (4)
- # specter (6)
- # spirituality-ethics (4)
- # yada (9)
guys - not sure of this is the right place to ask but I have a small problem writing the equivalent of Unix tail in core.async
I have a feeling I’m missing something obvious so wondered if another pair of eyes (or many pairs of eyes!) could help
please ignore this question I just realised that my failing test truncated the file, so in fact the code is OK and my test was faulty
(btw I know that this is actually the equivalent of tail -1f rather than a proper equivalent of tail; sue me)
on that note, you shouldn't do blocking I/O in go
blocks at all, only channel operations. In thread
blocks there is no use-case restriction
of course this is not enforced programmatically, but if you do enough I/O in go block your will encounter deadlocks @raymcdermott