fix Amp\Promise::wait() is deprecated and scheduled for removal.

Amp\Promise::wait() is deprecated and scheduled for removal. Please update code to use Amp\wait($promise) instead

https://github.com/amphp/amp/releases/tag/v0.15.0

Release 0.15 removes Amp\Promise::wait()