Skip to content

Commit d04c4fa

Browse files
committed
Prepare v1.2.0 release
1 parent f7d1116 commit d04c4fa

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
11
# Changelog
22

3+
## 1.2.0 (2019-12-05)
4+
5+
* Feature: Add `any()` helper to await first successful fulfillment of operations.
6+
(#18 by @clue)
7+
8+
```php
9+
// new: limit concurrency while awaiting any operation to complete
10+
$promise = Queue::any(3, $urls, function ($url) use ($browser) {
11+
return $browser->get($url);
12+
});
13+
14+
$promise->then(function (ResponseInterface $response) {
15+
echo 'First successful: ' . $response->getStatusCode() . PHP_EOL;
16+
});
17+
```
18+
19+
* Minor documentation improvements (fix syntax issues and typos) and update examples.
20+
(#9 and #11 by @clue and #15 by @holtkamp)
21+
22+
* Improve test suite to test against PHP 7.4 and PHP 7.3, drop legacy HHVM support,
23+
update distro on Travis and update project homepage.
24+
(#10 and #19 by @clue)
25+
326
## 1.1.0 (2018-04-30)
427

528
* Feature: Add `all()` helper to await successful fulfillment of all operations
629
(#8 by @clue)
730

831
```php
932
// new: limit concurrency while awaiting all operations to complete
10-
$promise = Queue:all(3, $urls, function ($url) use ($browser) {
33+
$promise = Queue::all(3, $urls, function ($url) use ($browser) {
1134
return $browser->get($url);
1235
});
1336

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ You can use this to throttle multiple HTTP requests, database queries or pretty
1919
much any API that already uses Promises.
2020

2121
* **Async execution of operations** -
22-
Process any number of async operations choose how many should be handled
22+
Process any number of async operations and choose how many should be handled
2323
concurrently and how many operations can be queued in-memory. Process their
2424
results as soon as responses come in.
25-
The Promise-based design provides a *sane* interface to working with out of bound results.
25+
The Promise-based design provides a *sane* interface to working with out of order results.
2626
* **Lightweight, SOLID design** -
27-
Provides a thin abstraction that is [*just good enough*](http://en.wikipedia.org/wiki/Principle_of_good_enough)
27+
Provides a thin abstraction that is [*just good enough*](https://en.wikipedia.org/wiki/Principle_of_good_enough)
2828
and does not get in your way.
2929
Builds on top of well-tested components and well-established concepts instead of reinventing the wheel.
3030
* **Good test coverage** -
31-
Comes with an automated tests suite and is regularly tested in the *real world*
31+
Comes with an automated tests suite and is regularly tested in the *real world*.
3232

3333
**Table of contents**
3434

@@ -470,11 +470,11 @@ for more details.
470470
The recommended way to install this library is [through Composer](https://getcomposer.org).
471471
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
472472

473-
This project follows [SemVer](http://semver.org/).
473+
This project follows [SemVer](https://semver.org/).
474474
This will install the latest supported version:
475475

476476
```bash
477-
$ composer require clue/mq-react:^1.1
477+
$ composer require clue/mq-react:^1.2
478478
```
479479

480480
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"authors": [
88
{
99
"name": "Christian Lück",
10-
"email": "christian@lueck.tv"
10+
"email": "christian@clue.engineering"
1111
}
1212
],
1313
"autoload": {

0 commit comments

Comments
 (0)