8000 Deprecate clue/reactphp-block, use react/async instead · clue/reactphp-block@a37cb98 · GitHub
[go: up one dir, main page]

Skip to content

Commit a37cb98

Browse files
committed
Deprecate clue/reactphp-block, use react/async instead
1 parent 0328290 commit a37cb98

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,33 @@
1-
# clue/reactphp-block
1+
# Deprecation notice
2+
3+
This package has now been migrated over to
4+
[react/async](https://github.com/reactphp/async)
5+
and only exists for BC reasons.
6+
7+
```bash
8+
composer require "react/async:^4 || ^3 || ^2"
9+
```
10+
11+
Only the `await()` function has been merged without it's optinal parameters `$loop` and `$timeout`,
12+
the rest of `await()` works as-is from the latest `v1.5.0` release with no other significant changes.
13+
Simply update your code to use the updated namespace like this:
14+
15+
```php
16+
// old
17+
$result = Clue\React\Block\await($promise);
18+
19+
// new
20+
$result = React\Async\await($promise);
21+
```
22+
23+
See [react/async](https://github.com/reactphp/async#usage) for more details.
24+
25+
The below documentation applies to the last release of this package.
26+
Further development will take place in the updated
27+
[react/async](https://github.com/reactphp/async),
28+
so you're highly recommended to upgrade as soon as possible.
29+
30+
# Legacy clue/reactphp-block
231

332
[![CI status](https://github.com/clue/reactphp-block/workflows/CI/badge.svg)](https://github.com/clue/reactphp-block/actions)
433
[![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)

0 commit comments

Comments
 (0)
0