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 e8207c4 commit 141c629Copy full SHA for 141c629
src/Context/ForkContext.php
@@ -9,6 +9,7 @@
9
use Amp\Serialization\NativeSerializer;
10
use Amp\Serialization\Serializer;
11
use Amp\TimeoutCancellation;
12
+use React\EventLoop\StreamSelectLoop;
13
use Revolt\EventLoop;
14
use Revolt\EventLoop\Driver\UvDriver;
15
@@ -34,8 +35,7 @@ final class ForkContext extends AbstractContext
34
35
36
public static function isSupported(): bool
37
{
- return \function_exists('pcntl_fork')
38
- && !EventLoop::getDriver() instanceof UvDriver;
+ return \function_exists('pcntl_fork') && EventLoop::getDriver() instanceof StreamSelectLoop;
39
}
40
41
/**
0 commit comments