presentkim / await-sleep
This package is abandoned and no longer maintained.
The author suggests using the presentkim/await-utils package instead.
Provides a fake asleep() function for await-generator for axolotl-pm/PocketMine-MP
2.0.0
2026-11-27 03:54 UTC
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
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/await-sleep composer require presentkim/await-utils
Then replace the namespace in your code. Class, method and function names are unchanged.
| await-sleep | await-utils |
|---|---|
kim\present\awaitsleep\AwaitSleep |
kim\present\awaitutils\AwaitSleep |
kim\present\awaitsleep\asleep() |
kim\present\awaitutils\asleep() |
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.