This PR is a split of the original PR #45 (the original PR shall stay open until completely done).
This PR changes the usage of promises inside this library to the recommendation listed on reactphp/promise. This PR also removes the unreachable code in AbstractSyncAdapter and adds exceptions to rejected promises.
The used promises in the tests are untouched, as they will be refactored anyway in a future PR.
This PR is a split of the original PR #45 (the original PR shall stay open until completely done).
This PR changes the usage of promises inside this library to the recommendation listed on reactphp/promise. This PR also removes the unreachable code in
AbstractSyncAdapter
and adds exceptions to rejected promises.The used promises in the tests are untouched, as they will be refactored anyway in a future PR.