Skip to content

Commit

Permalink
Deprecate clue/reactphp-block, use reactphp/async instead
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonFrings committed Sep 1, 2022
1 parent 0328290 commit af17e92
Showing 1 changed file with 30 additions and 1 deletion.
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

0 comments on commit af17e92

Please sign in to comment.