reactphp-block icon indicating copy to clipboard operation
reactphp-block copied to clipboard

Heads up! Development focus on react/async

Open SimonFrings opened this issue 2 years ago • 2 comments

If you're currently using this project, you may want to check out the successor https://github.com/reactphp/async instead 🎉 We've merged the await() function from this project into the new react/async package without the optional parameters $loop and $timeout. Upgrading should still be simple and should take no longer than a few minutes in most cases:

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

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

This project may see some smaller adjustments / fixes in the future, but all development efforts and new features will focus on react/async instead. Upgrading is highly recommended.

We're planning to soft-deprecate this project in the future after a reasonable transition period. We want to ensure a smooth upgrade path and will not break any existing implementations, so you can keep installing old versions from this project, but should not expect any major changes and feature additions.

Head over to https://github.com/reactphp/async!

Refs: https://github.com/reactphp/async/pull/8 This ticket is similar to https://github.com/clue/reactphp-buzz/issues/177 by @clue.

SimonFrings avatar Sep 01 '22 14:09 SimonFrings

@clue Sorry for the ping & thank you for all your hard work! :)

I noticed that the 4.0 version tagged on Github for react\async does not include the new delay function. Any idea when a new version might be tagged?

joecampo avatar Mar 20 '23 23:03 joecampo

@joecampo The milestone for the upcoming v4.1.0 is not completed yet, but we're working on this, so you can expect a release with the delay() function in the nearer future.

I don't think this question belongs in this ticket, it would be more suited for ReactPHP discussions, just for future questions. This is why I will mark this as off topic.

Hope this helps :+1:

SimonFrings avatar Mar 21 '23 12:03 SimonFrings