Documentation

SwowHandler
in package
implements HandlerInterface uses HandlerMethods

基于swow实现的协程处理器

Table of Contents

Interfaces

HandlerInterface
协程处理器接口

Methods

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

Methods

initEnv()

swow handler无需初始化

public static initEnv() : void
Tags
inheritdoc

isAvailable()

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

public static isAvailable() : bool
Tags
inheritdoc
Return values
bool

返回是否可用

waitFor()

等待直到回调返回true

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

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

$timeout : float|int = -1

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

Tags
inheritdoc

        
On this page

Search results