Skip to content

Commit

Permalink
Update example to new eventloop API
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Aug 25, 2021
1 parent e233982 commit 2c99d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Dave 1995-01-01 3.1.1.1
Once [installed](#install), you can use the following code to read a TSV stream from `STDIN`:

```php
$stdin = new React\Stream\ReadableResourceStream(STDIN, $loop);
$stdin = new React\Stream\ReadableResourceStream(STDIN);
$stream = new Clue\React\Tsv\Decoder($stdin);

$stream->on('data', function ($data) {
Expand Down

0 comments on commit 2c99d57

Please sign in to comment.