Skip to content

Commit fa736cf

Browse files
author
ThijsFeryn
committed
Adding $loop->run(); to the documentation
1 parent 98b6095 commit fa736cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ $connector->create('www.google.com', 80)->then(function (React\Stream\Stream $st
4545
$stream->write('...');
4646
$stream->close();
4747
});
48+
49+
$loop->run();
4850
```
4951

5052
### Async SSL/TLS connections
@@ -61,4 +63,6 @@ $secureConnector->create('www.google.com', 443)->then(function (React\Stream\Str
6163
$stream->write("GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n");
6264
...
6365
});
66+
67+
$loop->run();
6468
```

0 commit comments

Comments
 (0)