Fork me on GitHub
#core-async
<
2015-10-23
>
colin.yates09:10:11

@mccraigmccraig: What a fantastic resource - thanks for pointing that out

mccraigmccraig12:10:00

@danielcompton: here's a simplified example of how my client-side async handling works (though this example is clj, cats works just fine on cljs too) : https://www.refheap.com/110965

mccraigmccraig12:10:02

(you should be able to run everything in that example with lein repl from https://github.com/funcool/cats)

dialelo19:10:19

when channels are used to convey either one value or an error i tend to use promises

Alex Miller (Clojure team)19:10:27

Well promise-chan should (finally) be coming soon to async

dialelo19:10:07

thought it was rolled back, at least in Clojure

dialelo19:10:25

how does a promise channel signal errors? closing before puting a value?

dialelo19:10:08

is very subjective but I don't think channels are the right abstraction for one asynchronous, possibly failing computation that returns a value

Alex Miller (Clojure team)19:10:04

A new version that addresses the prior issues was just applied

Alex Miller (Clojure team)19:10:47

Closing a promise-chan will deliver nil

Alex Miller (Clojure team)19:10:10

(For all future takers)

niwinz21:10:30

@alexmiller: I'm not clearly understand: That channel-promise provides that standard promise doesn't?

Alex Miller (Clojure team)22:10:20

It can be used as a channel inside async, with alt etc

danielcompton23:10:17

@alexmiller what are your thoughts on moving cljs.core.async -> clojure.core.async? It seems like the best time to do it would be before it gets out of alpha