JanetDocsPlaygroundI'm feeling luckyGitHub sign in

ev/capacity



    cfunction
    src/core/ev.c on line 1051, column 1

    (ev/capacity channel)

    Get the number of items a channel will store before blocking 
    writers.


1 exampleSign in to add an example
Loading...
(let [c0 (ev/chan)
      c1 (ev/chan 1)]
  [(ev/capacity c0) (ev/capacity c1)])
# => '(0 1)
sogaiuPlayground