Using thread pool when poll is not null.