Documentation

HandlerInterface

协程处理器接口

Table of Contents

Methods

initEnv()  : void
用于环境加载初始化
isAvailable()  : bool
用于判断当前环境是否可用
waitFor()  : void
等待直到回调返回true

Methods

isAvailable()

用于判断当前环境是否可用

public static isAvailable() : bool
Return values
bool

返回是否可用

waitFor()

等待直到回调返回true

public static waitFor([Closure|null $closure = null ][, int|float $timeout = -1 ]) : void
Parameters
$closure : Closure|null = null

返回true或抛出异常则跳出等待

$timeout : int|float = -1

单位:秒| -1:不限制等待时间

Tags
throws
TimeoutException

        
On this page

Search results