From 706bdfa632ccb1ffedf1bf3a0857f7d117746cc2 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sat, 21 May 2016 19:49:04 +0200 Subject: [PATCH] Move from keep_alive to watchers array --- src/Loop.php | 4 +--- src/LoopDriver.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Loop.php b/src/Loop.php index ec8d581..c911ce4 100644 --- a/src/Loop.php +++ b/src/Loop.php @@ -287,11 +287,9 @@ final class Loop * "on_readable" => ["enabled" => int, "disabled" => int], * "on_writable" => ["enabled" => int, "disabled" => int], * "on_signal" => ["enabled" => int, "disabled" => int], - * "keep_alive" => int, + * "watchers" => ["referenced" => int, "unreferenced" => int], * ]; * - * keep_alive refers to the number of referenced watchers. - * * Implementations MAY optionally add more information in the array but * at minimum the above key => value format MUST always be provided. * diff --git a/src/LoopDriver.php b/src/LoopDriver.php index 08c019b..152b4bc 100644 --- a/src/LoopDriver.php +++ b/src/LoopDriver.php @@ -157,11 +157,9 @@ interface LoopDriver * "on_readable" => ["enabled" => int, "disabled" => int], * "on_writable" => ["enabled" => int, "disabled" => int], * "on_signal" => ["enabled" => int, "disabled" => int], - * "keep_alive" => int, + * "watchers" => ["referenced" => int, "unreferenced" => int], * ]; * - * keep_alive refers to the number of referenced watchers. - * * Implementations MAY optionally add more information in the array but * at minimum the above key => value format MUST always be provided. *