MCPcopy Create free account
hub / github.com/twisted/twisted / start

Method start

src/twisted/python/threadpool.py:171–181  ·  view source on GitHub ↗

Start the threadpool.

(self)

Source from the content-addressed store, hash-verified

169 # attribute name.
170
171 def start(self) -> None:
172 """
173 Start the threadpool.
174 """
175 self.joined = False
176 self.started = True
177 # Start some threads.
178 self.adjustPoolsize()
179 backlog = self._team.statistics().backloggedWorkCount
180 if backlog:
181 self._team.grow(backlog)
182
183 def startAWorker(self) -> None:
184 """

Calls 3

adjustPoolsizeMethod · 0.95
statisticsMethod · 0.80
growMethod · 0.80