In Clojure, how to check if an object is a core.async channel?

Viewed 936

There is a function chan to create a channel. But I don't see a chan?. How would I write a predicate chan? that returns true for objects created by chan?

I'm asking about both Clojure and ClojureScript.

1 Answers
Related