Setting a factory is only allowed as long as no loop is currently running. Passing null will reset the
default driver and remove the factory.
The factory will be invoked if none is passed to Loop::execute. A default driver will be created to
support synchronous waits in traditional applications.
public static setFactory ( Interop\Async\Loop\DriverFactory $factory = null ) | ||
$factory | Interop\Async\Loop\DriverFactory | New factory to replace the previous one. |