cloroutine
cloroutine copied to clipboard
Coroutine support for clojure
 Dependency graph on a fairly minimal app that uses Missionary + Clojure 1.11.1 ^ In recent versions of Clojure they've introduced a few new functions such as `update-vals` these...
leonoel/missionary#17
impl.cljc requires `cljs.analyzer` and `cljs.env` for cljs macros. To avoid this problem, one approach would be: - split up impl.cljc so that it provides an impl_clj and impl_cljs entrypoint namespace...
I've been playing around with the `cr` macro looking to create a js-like syntax for async/await https://github.com/leonoel/cloroutine/blob/master/doc/02-async-await.md There's a couple of issues I'm having with the example. One is that...
Given the code example, this gives a warning: ```clojure (require '[cloroutine.core :refer [cr]]) (import '(java.util.concurrent CompletableFuture)) (def ^:dynamic *fiber*) (def ^:dynamic *value*) (def ^:dynamic *error*) (defn await [cf] (.whenComplete ^CompletableFuture...
I've been trying to debug coroutines with [hashp](https://github.com/weavejester/hashp) and I've got an exception. Cloroutine doesn't handle [locking](https://github.com/weavejester/hashp/blob/master/src/hashp/core.clj#L37) form. I use latest version of cloroutine. I think cloroutine should have fake...
Hi! I don't find your email. So, I'm writing here. I develop a [library for (side) effects](https://github.com/darkleaf/effect) on top of cloroutine. Documentation is absent but it have [good tests](https://github.com/darkleaf/effect/blob/master/test/darkleaf/effect/core_test.cljc). It...
Hi! Hopefully this is related to the previous issue, but it might help to have more info/examples. Using tufte's profile in an async block results in the following warning: `Wrong...
Hi! When specter's setval is called within an async block the following warning appears: ``` ------ WARNING #1 - :redef-in-file --------------------------------------------- File: /tmp/naked/src/naked/core.cljs:11:22 -------------------------------------------------------------------------------- 8 | (defn start [] 9...
Leo said: "it may be a cloroutine bug, move .readLine in a wrapper function" ``` #?(:clj (defn readerReadLine [r] (.readLine r))) #?(:clj (defn file-stream [uri] (m/ap (with-open [r (clojure.java.io/reader uri)]...