Skip to content

Commit

Permalink
Use interfaces instead of concrete classes in the documentation react…
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jun 17, 2017
1 parent db1f46a commit ae3dbf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ access fields otherwise available through `proc_get_status()`.
### Stream Properties

Once a process is started, its I/O streams will be constructed as instances of
`React\Stream\ReadableResourceStream` and `React\Stream\WritableResourceStream`. Before `start()` is called, these properties are `null`.
`React\Stream\ReadableStreamInterface` and `React\Stream\WritableStreamInterface`. Before `start()` is called, these properties are `null`.
Once a process terminates, the streams will become closed but not unset.

* `$stdin`
* `$stdout`
* `$stderr`

Each of these implement the underlying
[`ReadableResourceStream`](https://github.com/reactphp/stream#readablestreaminterface) or [`WritableResourceStream`](https://github.com/reactphp/stream#writablestreaminterface)
[`ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) or [`WritableStreamInterface`](https://github.com/reactphp/stream#writablestreaminterface)
and you can use any of their events and methods as usual:

```php
Expand All @@ -98,7 +98,7 @@ $process->stdin->end($data = null);
```

For more details, see the
[`ReadableResourceStream`](https://github.com/reactphp/stream#readablestreaminterface) and [`WritableResourceStream`](https://github.com/reactphp/stream#writablestreaminterface).
[`ReadableStreamInterface`](https://github.com/reactphp/stream#readablestreaminterface) and [`WritableStreamInterface`](https://github.com/reactphp/stream#writablestreaminterface).

### Command

Expand Down

0 comments on commit ae3dbf0

Please sign in to comment.