Skip to content

Explain fibers in changelog #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

With this release the promise `wait` function will wait for requests to complete using
[`react/async`'s `await`](https://reactphp.org/async/#await) utilizing fibers. Instead of constantly
start stopping the event loop. As such users are expected to run usage of this adapter in a fiber using
[`react/async`'s `async`](https://reactphp.org/async/#async) like:

```php
use function React\Async\async;

async(static function () {
// Returns a Http\Promise\Promise
$promise = $adapter->sendAsyncRequest(request);

// Returns a Psr\Http\Message\ResponseInterface
$response = $promise->wait();
})();
```

### Changed

- Use PHP 8.1 fibers as async mechanism.
- Detect supported PHP versions in range during CI instead of hardcoding them.

### Changed

## [3.0.1] - 2021-10-20

### Changed
Expand Down