Download the PHP package xtlsoft/xcoroutine without Composer
On this page you can find all versions of the php package xtlsoft/xcoroutine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package xcoroutine
XCoroutine
XCoroutine, the PHP Coroutine.
install 安装
Intro 介绍
- Task: 任务实例。您可以向里面传入一个Generator,然后通过我们的封装对他进行操作。
- Scheduler: 多任务执行封装。您可以往里面add许多Task,然后执行。每个Task有唯一的ID,一个Task进行部分计算调用yield后,让下一个Task进行计算,以此循环,实现多任务管理。
- SystemCall: Task之间和Task与Scheduler之间传递数据、互相操作的接口。
- DynamicObject: 动态编程类,让你的类支持动态定义/销毁变量和方法。
Usage 使用
-
初识yield 例子:
输出:
-
Task 使用 例子:
输出:
-
Scheduler 使用 例子#1:
例子#2:
-
SystemCall 使用 例子:
- DynamicObject 使用 例子:
All versions of xcoroutine with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5
The package xtlsoft/xcoroutine contains the following files
Loading the files please wait ....