10000 Release v2.1.0 · reactphp/async · GitHub
[go: up one dir, main page]

Skip to content

v2.1.0

Compare
Choose a tag to compare
@SimonFrings SimonFrings released this 22 Jun 14:03
· 3 commits to 2.x since this release
  • Feature: Add new delay() function to delay program execution.
    (#72 by @clue)

    echo 'a';
    Loop::addTimer(1.0, function () {
        echo 'b';
    });
    React\Async\delay(3.0);
    echo 'c';
    
    // prints "a" at t=0.0s
    // prints "b" at t=1.0s
    // prints "c" at t=3.0s
  • Update test suite, run tests on PHP 8.2 and report failed assertions.
    (#59 and #75 by @WyriHaximus and #68 by @clue)

0