JanetDocsPlaygroundI'm feeling luckyGitHub sign in

ev/count



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

    (ev/count channel)

    Get the number of items currently waiting in a channel.


1 exampleSign in to add an example
Loading...
(let [c (ev/chan 1)
      before (ev/count c)]
  (ev/give c :hi)
  [before (ev/count c)])
# => '(0 1)
sogaiuPlayground