MCPcopy Create free account
hub / github.com/apache/qpid-proton / __init__

Method __init__

python/examples/db_common.py:28–37  ·  view source on GitHub ↗
(self, db, injector)

Source from the content-addressed store, hash-verified

26
27class Db(object):
28 def __init__(self, db, injector):
29 self.db = db
30 self.injector = injector
31 self.tasks = queue.Queue()
32 self.position = None
33 self.pending_events = []
34 self.running = True
35 self.thread = threading.Thread(target=self._process)
36 self.thread.daemon = True
37 self.thread.start()
38
39 def close(self):
40 self.tasks.put(lambda conn: self._close())

Callers

nothing calls this directly

Calls 2

QueueMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected