Module pyboiler.internal.log.queue
Classes
class Queue
-
Expand source code
class Queue: __instance = None __slots__ = "_queue" def __new__(cls): if cls.__instance is None: inst = object.__new__(cls) inst._queue = _Queue() cls.__instance = inst return cls.__instance def stop(self): self._queue.stop() def add(self, handlers: list): self._queue.queue.put_nowait(handlers)
Methods
def add(self, handlers: list)
def stop(self)