Home | History | Annotate | Download | only in futures

Lines Matching refs:initializer

204 def _process_worker(call_queue, result_queue, initializer, initargs):
214 initializer: A callable initializer, or None
215 initargs: A tuple of args for the initializer
217 if initializer is not None:
219 initializer(*initargs)
221 _base.LOGGER.critical('Exception in initializer:', exc_info=True)
491 initializer=None, initargs=()):
500 initializer: An callable used to initialize worker processes.
501 initargs: A tuple of arguments to pass to the initializer.
517 if initializer is not None and not callable(initializer):
518 raise TypeError("initializer must be a callable")
519 self._initializer = initializer