JanetDocsPlaygroundI'm feeling luckyGitHub sign in

ev/full



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

    (ev/full channel)

    Check if a channel is full or not.


1 exampleSign in to add an example
Loading...
(let [c (ev/chan 2)]
  (ev/give c :one)
  (def first-check (ev/full c))
  (ev/give c :two)
  (def second-check (ev/full c))
  (ev/take c)
  (def third-check (ev/full c))
  [first-check second-check third-check])
# => '(false true false)
sogaiuPlayground