Download the PHP package ant-framework/coroutine without Composer
On this page you can find all versions of the php package ant-framework/coroutine. 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 coroutine
Co stack
基于ReactPHP的携程堆栈模块,以同步的方式书写异步代码
使用ReactPHP异步回调模式
使用Coroutine
- 在使用Coroutine的情况下,代码是以同步的方式书写的,但是运行模式是以异步的方式运行,在遇到IO时,程序会避开等待,去执行其他任务,等到IO完成后,切换回之前的上下文
Todo
- Fork当前任务
- 协程上下文,参考Koa中间件功能
- 异步客户端 (redis, mysql, http)
- defer,当协程完成时,触发defer(资源回收机制)
- 保存任务上下文,每当触发事件时,clone一个进行触发
All versions of coroutine with dependencies
PHP Build Version
Package Version
The package ant-framework/coroutine contains the following files
Loading the files please wait ....