File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 4.1.0 (2023-06-22)
4
+
5
+ * Feature: Add new ` delay() ` function to delay program execution.
6
+ (#69 by @clue )
7
+
8
+ ``` php
9
+ echo 'a';
10
+ Loop::addTimer(1.0, function () {
11
+ echo 'b';
12
+ });
13
+ React\Async\delay(3.0);
14
+ echo 'c';
15
+
16
+ // prints "a" at t=0.0s
17
+ // prints "b" at t=1.0s
18
+ // prints "c" at t=3.0s
19
+ ```
20
+
21
+ * Update test suite, add PHPStan with `max` level and report failed assertions.
22
+ (#66 and #76 by @clue and #61 and #73 by @WyriHaximus)
23
+
3
24
## 4.0.0 (2022-07-11)
4
25
5
26
A major new feature release, see [**release announcement**](https://clue.engineering/2022/announcing-reactphp-async).
Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ This project follows [SemVer](https://semver.org/).
623
623
This will install the latest supported version from this branch:
624
624
625
625
``` bash
626
- composer require react/async:^4
626
+ composer require react/async:^4.1
627
627
```
628
628
629
629
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments