presentkim / awaitable-promise
Provides a wrapper class for Promise with Generator exporting and Throwable handlers for axolotl-pm/PocketMine-MP
Requires
- php: ^8.4
- pocketmine/pocketmine-mp: ^5.0
- sof3/await-generator: ^3.6.1
Requires (Dev)
- axolotl-pm/pocketmine-mp: ^5.51
- phpunit/phpunit: ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 02:33:52 UTC
README
Important
This library moved to await-utils together with await-sleep, await-command and awaitable-promise. This repository is archived and gets no more updates.
Moving to await-utils
composer remove presentkim/awaitable-promise composer require presentkim/await-utils
Then replace the namespace in your code. Class, method and function names are unchanged.
| awaitable-promise | await-utils |
|---|---|
kim\present\awaitablepromise\AwaitablePromise |
kim\present\awaitutils\AwaitablePromise |
await-utils also adds AwaitSleep::timeout() and AwaitSleep::seconds(). See its
README and
changelog.
The last release of this library (2.0.0) keeps working; its code is still in this repository and on Packagist.
License
Distributed under the MIT License. See LICENSE for more information.