8000 Release v3.2.0 · reactphp/async · GitHub
[go: up one dir, main page]

Skip to content

v3.2.0

Compare
Choose a tag to compare
@SimonFrings SimonFrings released this 22 Nov 16:22
· 70 commits to 4.x since this release

This release contains backported features from the Async v4.2.0 release for those
not yet on PHP 8.1+. Async v3 provides a compatible API, but may not take advantage
of newer language features. We encourage upgrading to the latest version when possible.

  • Feature: Add Promise v3 template types for all public functions.
    (#82 by @WyriHaximus and @clue)

    All our public APIs now use Promise v3 template types to guide IDEs and static
    analysis tools (like PHPStan), helping with proper type usage and improving
    code quality:

    assertType('bool', await(resolve(true)));
    assertType('PromiseInterface<bool>', coroutine(fn(): bool => true));
  • Feature: Full PHP 8.3 compatibility.
    (#83 by @clue)

  • Update test suite to avoid unhandled promise rejections.
    (#80 by @clue)

0