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 <kfjwhee...@gmail.com> wrote: > 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 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 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 moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth) -- 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 moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.