queue-set-limit!

Synopsis

(queue-set-limit! queue limit)

Parameters

  • queue
  • limit

Description

This procedure sets a maximum number of messages limit that the FIFO queue is allowed to hold. Note: A limit of 0 identifies a queue as “unlimited”.

Side Effects

The queue limit is set.

Return Value

unspecified (ok)

Example

> (define q (queue-create))
q
> (queue-put! q "item")
ok
> (queue-set-limit! q 120)
ok
> (queue-limit q)
120
>