Skip to content

Commit

Permalink
Fix headlines in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Nov 19, 2018
1 parent 354e64d commit a5ae5b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ permalink: /processes

In the example below, a child process is used to call a blocking function (`file_get_contents()` is only an example of a blocking function, use [Artax](https://amphp.org/artax) for non-blocking HTTP requests). The result of that function is then sent back to the parent using the `Channel` object. The return value of the child process callable is available using the `Process::join()` method.

#### Child Process
## Child Process

```php
# child.php

Expand All @@ -23,7 +24,8 @@ return function (Channel $channel): \Generator {
});
```

#### Parent Process
## Parent Process

```php
# parent.php

Expand Down

0 comments on commit a5ae5b8

Please sign in to comment.