2017 © Pedro Peláez
 

library pcntl_job

Adapters for pcntl, cURL etc.

image

pcntl_job/pcntl_job

Adapters for pcntl, cURL etc.

  • Monday, March 21, 2016
  • by andreyserdjuk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

About

PcntlJob is simple PCNTL wrapper which allows to create child process in a friendly way., (*1)

Example:, (*2)

$childProcessesCount = 10;
$job = new Job($childProcessesCount);
// if parseRSS should be executed as class method in context, (example: $this)
$job->create(array($this, 'parseRSS'), array($href));
// or call as function
$job->create('parseRSS', array($href));

Attention

In child processes all active connections will be lost or their behavior becomes unpredictable (in my case: mysql can read but cannot write, redis loses all). So they should be reinitialized., (*3)

The Versions

21/03 2016

dev-master

9999999-dev https://github.com/andreyserdjuk/pcntl_job.git

Adapters for pcntl, cURL etc.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

pcntl