Skip to content

Commit 3cb406a

Browse files
committed
Prepare v0.5.1 release
1 parent bd03a1c commit 3cb406a

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 0.5.1 (2016-11-20)
4+
5+
* Feature: Support Promise cancellation for all connectors
6+
(#71 by @clue)
7+
8+
```php
9+
$promise = $connector->create($host, $port);
10+
11+
$promise->cancel();
12+
```
13+
14+
* Feature: Add TimeoutConnector decorator
15+
(#51 by @clue)
16+
17+
```php
18+
$timeout = new TimeoutConnector($connector, 3.0, $loop);
19+
$timeout->create($host, $port)->then(function(Stream $stream) {
20+
// connection resolved within 3.0s
21+
});
22+
```
23+
324
## 0.5.0 (2016-03-19)
425

526
* Feature / BC break: Support Connector without DNS

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The recommended way to install this library is [through Composer](http://getcomp
209209
This will install the latest supported version:
210210

211211
```bash
212-
$ composer require react/socket-client:^0.5
212+
$ composer require react/socket-client:^0.5.1
213213
```
214214

215215
If you care a lot about BC, you may also want to look into supporting legacy versions:

0 commit comments

Comments
 (0)