MCPcopy Index your code
hub / github.com/python/cpython / enqueue

Method enqueue

Lib/logging/handlers.py:1479–1487  ·  view source on GitHub ↗

Enqueue a record. The base implementation uses put_nowait. You may want to override this method if you want to use blocking, timeouts or custom queue implementations.

(self, record)

Source from the content-addressed store, hash-verified

1477 self.listener = None # will be set to listener if configured via dictConfig()
1478
1479 def enqueue(self, record):
1480 """
1481 Enqueue a record.
1482
1483 The base implementation uses put_nowait. You may want to override
1484 this method if you want to use blocking, timeouts or custom queue
1485 implementations.
1486 """
1487 self.queue.put_nowait(record)
1488
1489 def prepare(self, record):
1490 """

Callers 1

emitMethod · 0.95

Calls 1

put_nowaitMethod · 0.45

Tested by

no test coverage detected