Factory
in package
FinalYes
[Deprecated] The `Factory` class exists as a convenient way to pick the best available event loop implementation.
Tags
Table of Contents
Methods
- create() : LoopInterface
- [Deprecated] Creates a new event loop instance
Methods
create()
[Deprecated] Creates a new event loop instance
public
static create() : LoopInterface
// deprecated
$loop = React\EventLoop\Factory::create();
// new
$loop = React\EventLoop\Loop::get();
This method always returns an instance implementing LoopInterface,
the actual event loop implementation is an implementation detail.
This method should usually only be called once at the beginning of the program.