Next: , Previous: config load, Up: Top


3 (container async-queue)

3.1 Overview

A asynchronous queue can be used to safely send messages from one thread to another.

3.2 Usage

— Function: make-async-queue

Create a new asynchronous queue.

— Function: async-enqueue! q elt

Enqueue elt into q.

— Function: async-dequeue! q

Dequeue a single element from q. If the queue is empty, the calling thread is blocked until an element is enqueued by another thread.