take

added

ns
clojure.core.async

type
function

(take n ch) (take n ch buf-or-n)

Returns a channel that will return, at most, n items from ch. After n items
have been returned, or ch has been closed, the return channel will close.

The output channel is unbuffered by default, unless buf-or-n is given.