1
0
mirror of https://github.com/danog/loop.git synced 2024-11-30 04:19:04 +01:00

Improve docs

This commit is contained in:
Daniil Gentili 2023-01-24 15:54:36 +01:00
parent 064b1d8d2a
commit 08793c8207
2 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,9 @@ abstract class Loop
/**
* Resume the loop.
*
* If resume is called multiple times, and the event loop hasn't resumed the loop yet,
* the loop will be resumed only once, not N times for every call.
*
* @return bool Returns false if the loop is not paused.
*/
public function resume(): bool;

View File

@ -218,6 +218,9 @@ abstract class Loop implements Stringable
/**
* Resume the loop.
*
* If resume is called multiple times, and the event loop hasn't resumed the loop yet,
* the loop will be resumed only once, not N times for every call.
*
* @return bool Returns false if the loop is not paused.
*/
public function resume(): bool