Create thread pool on first request avoids instantiating unused threadpool for blocking clients.
(self)
| 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): |
nothing calls this directly
no outgoing calls
no test coverage detected