Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def create_worker(self, qid: QueueID) -> Process:
"""Create a worker process attached to the given transmit and receive queues."""
tx, rx = self.queues[qid]
process = PoolWorker(
tx,
rx,
self.maxtasksperchild,
self.childconcurrency,
initializer=self.initializer,
initargs=self.initargs,
)
process.start()
return process