PHPackages                             wyrihaximus/parallel-runtime - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wyrihaximus/parallel-runtime

Abandoned → [react-parallel/runtime](/?search=react-parallel%2Fruntime)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wyrihaximus/parallel-runtime
============================

🎁 ext-parallel runtime wrapping adding error, signal, and exception handling

1.0.0(5y ago)421[4 PRs](https://github.com/WyriHaximus/php-parallel-runtime/pulls)MITPHPPHP ^7.4CI passing

Since Dec 5Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/php-parallel-runtime)[ Packagist](https://packagist.org/packages/wyrihaximus/parallel-runtime)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-parallel-runtime/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

ext-parallel Runtime Wrapper
============================

[](#ext-parallel-runtime-wrapper)

`ext-parallel` runtime wrapping adding error, signal, and exception handling.

[![Continuous Integration](https://github.com/wyrihaximus/php-parallel-runtime/workflows/Continuous%20Integration/badge.svg)](https://github.com/wyrihaximus/php-parallel-runtime/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/dcb553c03b4649ffb95b4106e1fad9b4f9e7e1d57887fa23c629ba39728a6d1d/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f706172616c6c656c2d72756e74696d652f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/parallel-runtime)[![Total Downloads](https://camo.githubusercontent.com/2591fbee41bbecd1b2379cd5e9a3e99eee5853c3df843ca89ac5b11dd4dda573/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f706172616c6c656c2d72756e74696d652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wyrihaximus/parallel-runtime/stats)[![Code Coverage](https://camo.githubusercontent.com/257ef7000e6a87ed41cc69517a5e1ecae77e855e2dcb468ff6655e4a0c4c6d13/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f57797269486178696d75732f7068702d706172616c6c656c2d72756e74696d652f62616467652e7376673f6272616e63686d6173746572)](https://coveralls.io/github/WyriHaximus/php-parallel-runtime?branch=master)[![Type Coverage](https://camo.githubusercontent.com/d3b1ef94bb0a1f9ac32828d46ea1a9f90dbeb3f432f25d24935304ec2920fa9a/68747470733a2f2f73686570686572642e6465762f6769746875622f57797269486178696d75732f7068702d706172616c6c656c2d72756e74696d652f636f7665726167652e737667)](https://shepherd.dev/github/WyriHaximus/php-parallel-runtime)[![License](https://camo.githubusercontent.com/c1fa32ffefa96438bbc4df843339cab5310c9c2eb07cac7257b58988dd309392/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f706172616c6c656c2d72756e74696d652f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/parallel-runtime)

Installation
============

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/parallel-runtime

```

Usage
=====

[](#usage)

The `Runtime` class transparently wraps `ext-parallel`'s runtime class. But instead of what you return from your closure it will return an `Outcome` object. The `Outcome` object containers the results of your closure, but also any reported errors. Consider the following example:

```
