Home | History | Annotate | Download | only in futures

Lines Matching refs:initializer

66 def _worker(executor_reference, work_queue, initializer, initargs):
67 if initializer is not None:
69 initializer(*initargs)
71 _base.LOGGER.critical('Exception in initializer:', exc_info=True)
114 initializer=None, initargs=()):
121 initializer: An callable used to initialize worker threads.
122 initargs: A tuple of arguments to pass to the initializer.
131 if initializer is not None and not callable(initializer):
132 raise TypeError("initializer must be a callable")
142 self._initializer = initializer
187 self._broken = ('A thread initializer failed, the thread pool '