SwowCoroutine
in package
implements
CoroutineInterface
Table of Contents
Interfaces
Methods
- __construct() : mixed
- 创建协程
- __destruct() : mixed
- 销毁协程
- id() : string|int|null
- 获取协程id
- origin() : mixed
- 获取协程原始返回
Methods
__construct()
创建协程
public
__construct(Closure $func) : mixed
Parameters
- $func : Closure
-
= function (mixed $coroutineId) }
Tags
__destruct()
销毁协程
public
__destruct() : mixed
Tags
id()
获取协程id
public
id() : string|int|null
Tags
Return values
string|int|nullorigin()
获取协程原始返回
public
origin() : mixed