Documentation

Factory
in package

FinalYes

[Deprecated] The `Factory` class exists as a convenient way to pick the best available event loop implementation.

Tags
deprecated
1.2.0

See Loop instead.

see
Loop

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.

Tags
deprecated
1.2.0

See Loop::get() instead.

see
Loop::get()
Return values
LoopInterface

        
On this page

Search results