leeshan87/reactphp-multi-loop 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leeshan87/reactphp-multi-loop

最新稳定版本:0.1.0

Composer 安装命令:

composer require --dev leeshan87/reactphp-multi-loop

包简介

Manage multiple LoopInterfaces easily when writing tests.

README 文档

README

CI status installs on Packagist

Manage multiple LoopInterfaces easily when writing tests.

Quickstart example

$loop1 = Factory::create();
$loop1->futureTick(function(){
    echo 'hello ';
});
MultiLoop::addLoop($loop1, 'loop1');
$loop2 = Factory::create();
$loop2->futureTick(function (){
    echo 'world!';
});
MultiLoop::addLoop($loop1, 'loop2');
MultiLoop::tickAll();

Install

The recommended way to install this library is through Composer. New to Composer?

This will install the latest supported version:

$ composer require leeshan87/reactphp-multi-loop:^0.1

See also the CHANGELOG for details about version upgrades.

This project aims to run on any platform and thus does not require any PHP extensions and supports running on legacy PHP 5.3 through current PHP 8+. It's highly recommended to use PHP 7+ for this project.

Tests

To run the test suite, you first need to clone this repo and then install all dependencies through Composer:

$ composer install

To run the test suite, go to the project root and run:

$ php vendor/bin/phpunit

License

MIT

统计信息

  • 总下载量: 4.74k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-05