Skip to content

Commit

Permalink
Correct filename in comments of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thgs committed Jan 1, 2024
1 parent 62d2f81 commit ce9abbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/context.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
print "Waiting 2 seconds to send start data...\n";
delay(2);

$context->send("Start data"); // Data sent to child process, received on line 9 of blocking-process.php
$context->send("Start data"); // Data sent to child process, received on line 9 of contexts/blocking.php

printf("Received the following from child: %s\n", $context->receive()); // Sent on line 14 of blocking-process.php
printf("Received the following from child: %s\n", $context->receive()); // Sent on line 14 of blocking.php
printf("Process ended with value %d!\n", $context->join());
} finally {
EventLoop::cancel($timer);
Expand Down
4 changes: 2 additions & 2 deletions examples/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
print "Waiting 2 seconds to send start data...\n";
delay(2);

$context->send("Start data"); // Data sent to child process, received on line 9 of blocking-process.php
$context->send("Start data"); // Data sent to child process, received on line 9 of contexts/blocking.php

printf("Received the following from child: %s\n", $context->receive()); // Sent on line 14 of blocking-process.php
printf("Received the following from child: %s\n", $context->receive()); // Sent on line 14 of contexts/blocking.php
printf("Process ended with value %d!\n", $context->join());
} finally {
EventLoop::cancel($timer);
Expand Down

0 comments on commit ce9abbe

Please sign in to comment.