From 8b87d209ff49b2dc0d3770437af30c0637226e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Schr=C3=B6er?= Date: Sat, 30 Sep 2023 02:09:41 +0200 Subject: [PATCH] fix typos, examples still WIP --- docs/src/common-pitfalls-and-workarounds.md | 2 +- docs/src/features/process-queue.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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);