2017 © Pedro Peláez
 

library parallel-processor

Run many pieces of code at once, and act on the results as they arrive

image

spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  • Thursday, June 28, 2018
  • by spencermortensen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 91 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 18 % Grown

The README.md

parallel-processor

The "parallel-processor" is a PHP library that lets you run many pieces of code at once--and the act on the results as they arrive., (*1)

Here's an example:, (*2)

$processor = new ForkProcessor();

$t0 = microtime(true);

$processor->start(new SleepJob(2, $results[]));
$processor->start(new SleepJob(3, $results[]));
$processor->start(new SleepJob(1, $results[]));

$processor->finish();

$t1 = microtime(true);

echo implode("\n", $results), "\n";
echo "\nTotal time: ", $t1 - $t0, " seconds\n";

Here's the output:, (*3)

Slept for 2 seconds.
Slept for 3 seconds.
Slept for 1 seconds.

Total time: 3.0033020973206 seconds

You can include this library through Composer:, (*4)

composer require spencer-mortensen/parallel-processor:~2.0, (*5)

The Versions

28/06 2018

dev-master

9999999-dev https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0 LGPL-3.0-or-later

The Requires

 

php asynchronous parallel processing multi-threaded

28/06 2018

3.1.2

3.1.2.0 https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0-or-later

The Requires

 

php asynchronous parallel processing multi-threaded

10/06 2018

3.1.1

3.1.1.0 https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0-or-later

The Requires

 

php asynchronous parallel processing multi-threaded

22/04 2018

3.1.0

3.1.0.0 https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0-or-later

The Requires

 

php asynchronous parallel processing multi-threaded

05/01 2018

3.0.0

3.0.0.0 https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0

The Requires

 

php asynchronous parallel processing multi-threaded

21/11 2017

2.1.0

2.1.0.0 https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

php asynchronous parallel processing multi-threaded

23/10 2017

2.0.1

2.0.1.0 https://github.com/spencer-mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

php asynchronous parallel processing multi-threaded

08/09 2017

2.0.0

2.0.0.0 https://github.com/Spencer-Mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

php asynchronous parallel processing multi-threaded

14/08 2017

1.0.1

1.0.1.0 https://github.com/Spencer-Mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

php asynchronous parallel processing multi-threaded

11/08 2017

1.0.0

1.0.0.0 https://github.com/Spencer-Mortensen/parallel-processor

Run many pieces of code at once, and act on the results as they arrive

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

php asynchronous parallel processing multi-threaded