You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage is simple, just pass the function the event loop and a closure that returns an array as result or throws a `Throwable` on errors and it will run in a freshly spawned child process.
22
+
Usage is simple, just pass the function the event loop and a closure that returns an JSON encodable array as result or throws a `Throwable` on errors and it will run in a freshly spawned child process.
23
23
24
24
```php
25
25
use function WyriHaximus\React\childProcessPromiseClosure;
26
26
27
27
childProcessPromiseClosure($loop, function () {
28
-
return ['message' => 'The closure MUST always return an array'];
28
+
return ['message' => 'The closure MUST always return an JSON encodable array'];
0 commit comments