PHP » GoLang |
login |
register |
about
|
GoLang Worker::collect
request it (387)
GoLang replacement for PHP's Worker::collect
[edit | history]
Worker::collect(PECL pthreads >= 3.0.0) Worker::collect — Collect references to completed tasks DescriptionAllows the worker to collect references determined to be garbage by the optionally given collector. Parameters
Return ValuesThe number of remaining tasks on the worker's stack to be collected. Examples
Example #1 A basic example of Worker::collect()
<?php The above example will output: There are currently 0 tasks on the stack to be collected There are 15 tasks remaining on the stack to be collected There are now 0 tasks on the stack to be collected |
more
Recently updated
more
Most requested
more
Last requests
|