Documentation

RippleWaitGroup
in package
implements WaitGroupInterface

Table of Contents

Interfaces

WaitGroupInterface

Methods

__construct()  : mixed
初始化
__destruct()  : mixed
销毁
add()  : bool
增加一个计数
count()  : int
返回计数
done()  : bool
完成一个计数
wait()  : void
阻塞等待

Methods

__construct()

初始化

public __construct() : mixed
Tags
inheritdoc

add()

增加一个计数

public add([int $delta = 1 ]) : bool
Parameters
$delta : int = 1
Tags
inheritdoc
Return values
bool

count()

返回计数

public count() : int
Tags
inheritdoc
Return values
int

done()

完成一个计数

public done() : bool
Tags
inheritdoc
Return values
bool

wait()

阻塞等待

public wait([int|float $timeout = -1 ]) : void
Parameters
$timeout : int|float = -1

单位:秒

Tags
inheritdoc

        
On this page

Search results