Skip to content

clojure.core/seque

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 3 Runnable: 0
([s] [n-or-q s])

Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background, and can get up to n items ahead of the consumer. n-or-q can be an integer n buffer size, or an instance of java.util.concurrent BlockingQueue. Note that reading from a seque can block if the reader gets ahead of the producer.

Examples

by Chouser on . May have evaluation errors.
by reborg on . May have evaluation errors.
by sanel on . May have evaluation errors.

Content from the matching ClojureDocs page, with authors credited on each contribution.