File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 3.2.0 (2023-11-22)
4+
5+ This release contains backported features from the Async v4.2.0 release for those
6+ not yet on PHP 8.1+. Async v3 provides a compatible API, but may not take advantage
7+ of newer language features. We encourage upgrading to the latest version when possible.
8+
9+ * Feature: Add Promise v3 template types for all public functions.
10+ (#82 by @clue )
11+
12+ All our public APIs now use Promise v3 template types to guide IDEs and static
13+ analysis tools (like PHPStan), helping with proper type usage and improving
14+ code quality:
15+
16+ ``` php
17+ assertType('bool', await(resolve(true)));
18+ assertType('PromiseInterface<bool >', coroutine(fn(): bool => true));
19+ ```
20+
21+ * Feature: Full PHP 8.3 compatibility.
22+ (#83 by @clue)
23+
24+ * Update test suite to avoid unhandled promise rejections.
25+ (#80 by @clue)
26+
327## 3.1.0 (2023-06-22)
428
529* Feature: Add new `delay()` function to delay program execution.
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ This project follows [SemVer](https://semver.org/).
402402This will install the latest supported version from this branch:
403403
404404``` bash
405- composer require react/async:^3.1
405+ composer require react/async:^3.2
406406```
407407
408408See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments