public int Pool::collect    ([ Callable $collector  ] )

Pool::collectCollect references to completed tasks

collector

A Callable collector that returns a boolean on whether the task can be collected or not. Only in rare cases should a custom collector need to be used.