Re: Cross-platform check if value is a channel

2016-01-18 Thread Timothy Baldridge
You could do that, but I would encourage you to either check ReadPort or WritePort, as there are some constructs in core.async that only implement one or the other. On Mon, Jan 18, 2016 at 2:26 PM, JvJ wrote: > So, you can just check if #(safisfies? > clojure.core.async.impl.protocols/Channel %)

Re: Cross-platform check if value is a channel

2016-01-18 Thread JvJ
So, you can just check if #(safisfies? clojure.core.async.impl.protocols/Channel %) On Monday, 18 January 2016 10:48:10 UTC-8, Alex Miller wrote: > > There is a ticket for this http://dev.clojure.org/jira/browse/ASYNC-126 > and you'll notice there is actually an implementation buried inside righ

Re: Cross-platform check if value is a channel

2016-01-18 Thread Alex Miller
There is a ticket for this http://dev.clojure.org/jira/browse/ASYNC-126 and you'll notice there is actually an implementation buried inside right now: clojure.core.async.impl.protocols/closed? On Sunday, January 17, 2016 at 10:53:57 PM UTC-6, JvJ wrote: > > Is there a way of checking to see if s

Cross-platform check if value is a channel

2016-01-17 Thread JvJ
Is there a way of checking to see if something is a channel? Does it work in both clj and cljs? -- 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 modera