PHPackages                             wyrihaximus/recoil-promise-coroutine-wrapper - 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-promise-coroutine-wrapper

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

wyrihaximus/recoil-promise-coroutine-wrapper
============================================

A simple API around WyriHaximus/recoil-queue-caller(-pool)

1.0.0(6y ago)09.3k1[1 PRs](https://github.com/WyriHaximus/recoilphp-promise-coroutine-wrapper/pulls)MITPHPPHP ^7.2

Since May 24Pushed 8mo ago1 watchersCompare

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

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

A simple API around WyriHaximus/recoil-queue-caller(-pool).
===========================================================

[](#a-simple-api-around-wyrihaximusrecoil-queue-caller-pool)

[![Build Status](https://camo.githubusercontent.com/c6c8843e465414c44f56e29953b313718156de1b6a11092658ce61f782d611d3/68747470733a2f2f7472617669732d63692e636f6d2f57797269486178696d75732f7265636f696c7068702d70726f6d6973652d636f726f7574696e652d777261707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/WyriHaximus/recoilphp-promise-coroutine-wrapper)[![Latest Stable Version](https://camo.githubusercontent.com/094fc3bee68c18ae3719a1a93dd3787bc60be3c2d4743a1f4ee9b1246545688c/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7265636f696c2d70726f6d6973652d636f726f7574696e652d777261707065722f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/recoil-promise-coroutine-wrapper)[![Total Downloads](https://camo.githubusercontent.com/e6080e44494283006374fef416c8e3f0a2f91a564e4ce69fee065a00a0903263/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7265636f696c2d70726f6d6973652d636f726f7574696e652d777261707065722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/recoil-promise-coroutine-wrapper)[![Code Coverage](https://camo.githubusercontent.com/ff0105d3f107c9fd30f157da519df1ca97249eef3bf80b476113452db966810a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f7265636f696c7068702d70726f6d6973652d636f726f7574696e652d777261707065722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/recoilphp-promise-coroutine-wrapper/?branch=master)[![License](https://camo.githubusercontent.com/0ffd53ca4c9499c0eca26c00f4a9ad90e97905e0b7fd0ecf75b3f4f698705edf/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7265636f696c2d70726f6d6973652d636f726f7574696e652d777261707065722f6c6963656e73652e706e67)](https://packagist.org/packages/WyriHaximus/recoil-promise-coroutine-wrapper)[![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-promise-coroutine-wrapper

```

Usage
=====

[](#usage)

```
// Have the event loop ready
$loop = Factory::create();

// Create the wrapper from the event loop, internally this will set up all the required comonents
$wrapper = PromiseCoroutineWrapper::createFromLoop($loop);

// Execute a coroutine and get the result through a promise (the irony)
$result = $wrapper->call(function (LoopInterface $loop, int $wait) {
    yield timedPromise($loop, $wait);

    return $wait;
}, $loop, $wait)
```

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2019 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

35

—

LowBetter than 79% of packages

Maintenance43

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

2545d ago

### 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 (7 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/wyrihaximus-recoil-promise-coroutine-wrapper/health.svg)

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

###  Alternatives

[abelzhou/php-trie-tree

Make a trie tree with php language.

21717.9k1](/packages/abelzhou-php-trie-tree)[doublesecretagency/craft-spoon

Bend your Matrix fields with block groups &amp; tabs.

8225.6k](/packages/doublesecretagency-craft-spoon)[robotusers/cakephp-excel

Robotusers CakePHP Excel plugin

2312.1k](/packages/robotusers-cakephp-excel)[plenta/contao-jobs-basic-bundle

Basic Job Manager for Contao (including Google Jobs).

335.1k](/packages/plenta-contao-jobs-basic-bundle)[timwassenburg/filament-timesheets

Filament Timesheets is a package for Filament that allows you to track time spent on projects and tasks.

471.1k1](/packages/timwassenburg-filament-timesheets)

PHPackages © 2026

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