made it so polling is optional in threadpool