MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/576576_Thread_Pool/recipe-576576.py:8–12  ·  view source on GitHub ↗
(self, Psize=20, Qsize=20)

Source from the content-addressed store, hash-verified

6
7class Pool(object):
8 def __init__(self, Psize=20, Qsize=20):
9 self.workers = []
10 self.jobs = Queue(Qsize)
11 self.size=Psize
12 self.accept=True
13 @propertx
14 def size():
15 def set(self, newSize):

Callers 1

__init__Method · 0.45

Calls 1

QueueClass · 0.50

Tested by

no test coverage detected