MCPcopy Create free account
hub / github.com/bundesAPI/smard-api / pool

Method pool

python-client/deutschland/smard/api_client.py:102–109  ·  view source on GitHub ↗

Create thread pool on first request avoids instantiating unused threadpool for blocking clients.

(self)

Source from the content-addressed store, hash-verified

100
101 @property
102 def pool(self):
103 """Create thread pool on first request
104 avoids instantiating unused threadpool for blocking clients.
105 """
106 if self._pool is None:
107 atexit.register(self.close)
108 self._pool = ThreadPool(self.pool_threads)
109 return self._pool
110
111 @property
112 def user_agent(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected