2.5.0 (2016-12-22)

  • Revert automatic cancellation of pending collection promises once the output promise resolves. This was introduced in 42d86b7 (PR #36, released in v2.3.0) and was both unintended and backward incompatible. If you need automatic cancellation, you can use something like:
function allAndCancel(array $promises)
{
   return \React\Promise\all($promises)
       ->always(function() use ($promises) {
           foreach ($promises as $promise) {
               if ($promise instanceof \React\Promise\CancellablePromiseInterface) {
                   $promise->cancel();
               }
           }
      });
}
  • all() and map() functions now preserve the order of the array (#77).
  • Fix circular references when resolving a promise with itself (#71).

How to install

sudo dnf upgrade --refresh --advisory=FEDORA-2016-ee02b6126a

This update has been submitted for testing by siwinski.

5 years ago

This update has been pushed to testing.

5 years ago

This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes

5 years ago

This update has been submitted for stable by siwinski.

5 years ago

This update has been pushed to stable.

5 years ago

Please login to add feedback.

Metadata
Type
bugfix
Karma
0
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
disabled
Dates
submitted
5 years ago
in testing
5 years ago
in stable
5 years ago
BZ#1408344 php-react-promise-2.5.0 is available
0
0

Automated Test Results