\Imi\UtilCoroutine

Summary

Methods
Properties
Constants
isIn()
create()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

isIn()

isIn() : boolean

判断当前是否在协程中运行

Returns

boolean

create()

create(callable  $callable, mixed  ...$params) : integer|boolean

创建一个新的协程,并立即执行。

Parameters

callable $callable
mixed $params variadic

Returns

integer|boolean