Worker::collect

Worker::collect

(PECL pthreads >= 3.0.0)

Worker::collectCollect references to completed tasks

Description

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

Allows the worker to collect references determined to be garbage by the optionally given collector.

Parameters

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.

登录查看完整内容