SizedQueue

class SizedQueue

Parent:
Object

This class represents queues of specified size capacity. The push operation may be blocked if the capacity is full.

See Queue for an example of how a SizedQueue works.

Public Class Methods

new(max) Show source

Creates a fixed-length queue with a maximum size of max.