promise icon indicating copy to clipboard operation
promise copied to clipboard

Promises/A implementation for PHP.

Results 11 promise issues
Sort by recently updated
recently updated
newest added

It would be good to have `examples` folder in the repo same as there's for others like [reactphp/filesystem](https://github.com/reactphp/filesystem/tree/0.2.x/examples). Examples can be how to read file using promises or any other...

This adds basic type safety annotations for static analyzers like PHPStan and Psalm. This will cover around 80% of the use cases and a follow-up PR for all supported versions...

new feature
maintenance

This adds basic type safety annotations for static analyzers like PHPStan and Psalm. This will cover around 80% of the use cases and a follow-up PR for all supported versions...

new feature
maintenance

I was considering adapting this lib for promises though it's currently impossible to be type-safe with it. I found this psalm plugin https://github.com/Bocmah/psalm-reactphp-promise-plugin that only includes stubs for psalm. So...

new feature
help wanted

The race function has always supported passing an empty array of promises/values into it. And then defaulted to the behavior of returning an ever waiting promise. While this makes sense...

BC break

Largely based on @clue's work at https://github.com/clue-labs/promise/commit/0feb517431633f6fc3da462cbea5c6bbba3d47d8 to trigger an error when a rejected promise hasn't been handled. Closes #87

new feature
BC break

This solves the problem that a PHP IDE always believes your then() method returns a PromiseInterface and not an ExtendedPromiseInterface

When using promises, there are a good chance that some code will forget to handle rejections/exceptions in a promise chain. This has the result of effectively hidding any rejection/exception that...

new feature
BC break