PHP
处理控制 | Process Control

EvLoop::__construct

EvLoop::__construct

(PECL ev >= 0.2.0)

EvLoop::__construct — Constructs the event loop object

Description

public EvLoop::__construct ([ int $flags [, mixed $data = NULL [, double $io_interval = 0.0 [, double $timeout_interval = 0.0 ]]]] )

Constructs the event loop object.

Parameters

flags

One of the event loop flags

data

Custom data associated with the loop.

io_interval

See io_interval

timeout_interval

See timeout_interval

Return Values

Returns new EvLoop object.

See Also

  • EvLoop::defaultLoop() - Returns or creates the default event loop.

← EvLoop::child

EvLoop::defaultLoop →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/evloop.construct.php