Skip to content

Commit

Permalink
fix typos, examples still WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sweikenb committed Sep 30, 2023
1 parent a16eed1 commit 8b87d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/common-pitfalls-and-workarounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/src/features/process-queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b87d20

Please sign in to comment.