Package grassyknoll :: Package lib :: Module ClosingQueue :: Class ClosingQueue
[hide private]

Class ClosingQueue

source code


a Queue that can be closed.

When the queue is closed, attempting to put additional items will raise Closed.

A newly-created queue is open.

Instance Methods [hide private]
 
_init(self, *args, **kwargs) source code
 
closed(self)
Return True if the queue is closed, False otherwise (not reliable!).
source code
 
close(self)
close the queue to new items
source code
 
_put(self, item) source code

Inherited from Queue.Queue: __init__, empty, full, get, get_nowait, join, put, put_nowait, qsize, task_done

Inherited from Queue.Queue (private): _empty, _full, _get, _qsize

Method Details [hide private]

_init(self, *args, **kwargs)

source code 
Overrides: Queue.Queue._init

_put(self, item)

source code 
Overrides: Queue.Queue._put