reactphp / promise

Promises/A implementation for PHP.
https://reactphp.org/promise/
MIT License
2.38k stars 146 forks source link

Mark `FulfilledPromise` and `RejectedPromise` as deprecated (Promise v2) #165

Closed clue closed 4 years ago

clue commented 4 years ago

Use resolve() and reject() instead.

This marks both classes as deprecated in the Promise v2 API in order to safely remove them from our public API for the v3 Promise API (see #164). See #155 for more details.