Skip to content
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

Deprecate clue/reactphp-block, use reactphp/async instead #67

Merged
merged 1 commit into from
Sep 1, 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
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
# clue/reactphp-block
# Deprecation notice

This package has now been migrated over to
[reactphp/async](https://github.com/reactphp/async)
and only exists for BC reasons.

```bash
composer require "react/async:^4 || ^3 || ^2"
```

Only the `await()` function has been merged without its optional parameters `$loop` and `$timeout`,
the rest of `await()` works as-is from the latest `v1.5.0` release with no other significant changes.
Simply update your code to use the updated namespace like this:

```php
// old
$result = Clue\React\Block\await($promise);

// new
$result = React\Async\await($promise);
```

See [reactphp/async](https://github.com/reactphp/async#usage) for more details.

The below documentation applies to the last release of this package.
Further development will take place in the updated
[reactphp/async](https://github.com/reactphp/async),
so you're highly recommended to upgrade as soon as possible.

# Legacy clue/reactphp-block

[![CI status](https://github.com/clue/reactphp-block/workflows/CI/badge.svg)](https://github.com/clue/reactphp-block/actions)
[![installs on Packagist](https://img.shields.io/packagist/dt/clue/block-react?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/clue/block-react)
Expand Down