diff --git a/docs/src/common-pitfalls-and-workarounds.md b/docs/src/common-pitfalls-and-workarounds.md index 3d804f1..f0e175a 100644 --- a/docs/src/common-pitfalls-and-workarounds.md +++ b/docs/src/common-pitfalls-and-workarounds.md @@ -10,7 +10,7 @@ the copied memory still belong to the main thread and when accessing them it wil Fortunately, there are some simple workarounds: -1. Do not open any connection of pointer before you fork your process _(easy enough)_ +1. Do not open any connection or pointer before you fork your process _(easy enough)_ 2. If you need to open a connection or resource, close it and create a new instance inside the fork: ```php diff --git a/docs/src/features/process-queue.md b/docs/src/features/process-queue.md index eafb475..4c91ba6 100644 --- a/docs/src/features/process-queue.md +++ b/docs/src/features/process-queue.md @@ -10,7 +10,8 @@ use Sweikenb\Library\Pcntl\ProcessQueue; require __DIR__ . '/vendor/autoload.php'; -// only 4 threads will be forked and further callbacks must wait until free slots are available +// only 4 threads will be forked and further callbacks must wait +// until free slots are available $maxThreads = 4; $queue = new ProcessQueue($maxThreads);