Creates count linked channel pairs. Pass the owner ends to new TaskPool in the thread that
submits tasks, which may be a worker, and the server ends to serveTasks in the workers.
Each port must be listed in the transferList of the thread it travels to.
Creates
countlinked channel pairs. Pass theownerends tonew TaskPoolin the thread that submits tasks, which may be a worker, and theserverends toserveTasksin the workers. Each port must be listed in thetransferListof the thread it travels to.