PHPackages                             wyrihaximus/recoil-queue-caller - 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/recoil-queue-caller

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wyrihaximus/recoil-queue-caller
===============================

Call all callables from the observable from within a RecoilPHP coroutine

2.1.1(7y ago)213.0k[3 PRs](https://github.com/WyriHaximus/recoilphp-queue-caller/pulls)3MITPHPPHP ^7.2

Since Jul 15Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/recoilphp-queue-caller)[ Packagist](https://packagist.org/packages/wyrihaximus/recoil-queue-caller)[ RSS](/packages/wyrihaximus-recoil-queue-caller/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (8)Versions (9)Used By (3)

Call all callables from the observable from within a RecoilPHP coroutine
========================================================================

[](#call-all-callables-from-the-observable-from-within-a-recoilphp-coroutine)

[![Build Status](https://camo.githubusercontent.com/8690ad3ce703e7c0846d55fdc66303d3a5a4f4bb1bbe203ac2eafa0aa61d2184/68747470733a2f2f7472617669732d63692e636f6d2f57797269486178696d75732f7265636f696c7068702d71756575652d63616c6c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/WyriHaximus/recoilphp-queue-caller)[![Latest Stable Version](https://camo.githubusercontent.com/9f2220cf5256819c233822917cdc59c67a5cac3045c6595c5ccb680be62ce3ee/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7265636f696c2d71756575652d63616c6c65722f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/recoil-queue-caller)[![Total Downloads](https://camo.githubusercontent.com/9c82fe2e3accc36d2621eed63d72fe81ee6fc4eea6e4180aa1d8338957e51545/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7265636f696c2d71756575652d63616c6c65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/recoil-queue-caller)[![Code Coverage](https://camo.githubusercontent.com/5c580cfaa9ddfb6a2336a090fb9e4d44b78f76e5220b9f86489b228b330ef086/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f7265636f696c7068702d71756575652d63616c6c65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/recoilphp-queue-caller/?branch=master)[![License](https://camo.githubusercontent.com/a45e03e1a05784b1288c228ea58101443e05c1544a402c5647433b0e1411c2af/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7265636f696c2d71756575652d63616c6c65722f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/recoil-queue-caller)[![PHP 7 ready](https://camo.githubusercontent.com/42718cddeb81248571079e9a79343ed0f98fbc659d6f1cf0bbf642e84f6d6cbf/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f57797269486178696d75732f72656163747068702d687474702d6d6964646c65776172652d636c6561722d626f64792f62616467652e737667)](https://travis-ci.org/WyriHaximus/reactphp-http-middleware-clear-body)

Install
=======

[](#install)

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/recoil-queue-caller

```

The purpose of this package is to run all given callables inside a coroutine.

Usage
=====

[](#usage)

The following example echo's `0123`:

```
$queueCaller = new QueueCaller($recoil);
$observable = observableFromArray(iterator_to_array((function () {
    $func = function ($a, $b) {
        echo $a + $b;
    };
    yield new Call($func, 0, 0);
    yield new Call($func, 0, 1);
    yield new Call($func, 1, 1);
    yield new Call($func, 1, 2);
})()));
$queueCaller->call($observable);
```

It is also possible to communicate results back:

```
$call = new Call(function ($a, $b) {
    return $a + $b;
}, 1, 2);
$call->wait(function ($result) {
    echo $result; // Echo's 3
});

$queueCaller = new QueueCaller($recoil);
$observable = observableFromArray([$call]);
$queueCaller->call($observable);
```

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2018 Cees-Jan Kiewiet

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance43

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Total

4

Last Release

2689d ago

Major Versions

1.0.0 → 2.0.02018-07-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (28 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (4 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/wyrihaximus-recoil-queue-caller/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-recoil-queue-caller/health.svg)](https://phpackages.com/packages/wyrihaximus-recoil-queue-caller)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M63](/packages/react-react)[react/stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

688126.8M194](/packages/react-stream)[react/child-process

Event-driven library for executing child processes with ReactPHP.

34076.1M136](/packages/react-child-process)[react/zmq

ZeroMQ bindings for React.

2471.7M31](/packages/react-zmq)[spatie/laravel-cronless-schedule

Run the Laravel scheduler without relying on cron

389307.2k1](/packages/spatie-laravel-cronless-schedule)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
