We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66cb4a commit 665cc7fCopy full SHA for 665cc7f
src/Loop.php
@@ -18,10 +18,12 @@ final class Loop
18
19
/**
20
* Set the factory to be used to create a driver if none is passed to
21
- * self::execute.
+ * self::execute. A default driver will be created if none exists yet
22
+ * to support synchronous waits in traditional applications.
23
*/
24
public static function setFactory(LoopDriverFactory $factory = null) {
25
self::$factory = $factory;
26
+ self::$driver = self::$driver ?: self::createDriver();
27
}
28
29
0 commit comments