Skip to content

Commit 706bdfa

Browse files
committed
Move from keep_alive to watchers array
1 parent ae36a20 commit 706bdfa

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Loop.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,9 @@ public static function setErrorHandler(callable $callback = null)
287287
* "on_readable" => ["enabled" => int, "disabled" => int],
288288
* "on_writable" => ["enabled" => int, "disabled" => int],
289289
* "on_signal" => ["enabled" => int, "disabled" => int],
290-
* "keep_alive" => int,
290+
* "watchers" => ["referenced" => int, "unreferenced" => int],
291291
* ];
292292
*
293-
* keep_alive refers to the number of referenced watchers.
294-
*
295293
* Implementations MAY optionally add more information in the array but
296294
* at minimum the above key => value format MUST always be provided.
297295
*

src/LoopDriver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,9 @@ public function setErrorHandler(callable $callback = null);
157157
* "on_readable" => ["enabled" => int, "disabled" => int],
158158
* "on_writable" => ["enabled" => int, "disabled" => int],
159159
* "on_signal" => ["enabled" => int, "disabled" => int],
160-
* "keep_alive" => int,
160+
* "watchers" => ["referenced" => int, "unreferenced" => int],
161161
* ];
162162
*
163-
* keep_alive refers to the number of referenced watchers.
164-
*
165163
* Implementations MAY optionally add more information in the array but
166164
* at minimum the above key => value format MUST always be provided.
167165
*

0 commit comments

Comments
 (0)