Skip to content

Commit 229d2f3

Browse files
committed
Fixed #90 - allow disabling of invalid watchers
1 parent dff456c commit 229d2f3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/Loop.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ public static function enable($watcherId)
237237
* @param string $watcherId The watcher identifier.
238238
*
239239
* @return void
240-
*
241-
* @throws InvalidWatcherException If the watcher identifier is invalid.
242240
*/
243241
public static function disable($watcherId)
244242
{

src/Loop/Driver.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,12 @@ abstract public function onSignal($signo, callable $callback, $data = null);
134134
abstract public function enable($watcherId);
135135

136136
/**
137-
* Disable a watcher. Disabling a watcher MUST NOT invalidate the watcher.
137+
* Disable a watcher. Disabling a watcher MUST NOT invalidate the watcher. Calling this function MUST never fail,
138+
* even when passed an invalid watcher.
138139
*
139140
* @param string $watcherId The watcher identifier.
140141
*
141142
* @return void
142-
*
143-
* @throws InvalidWatcherException If the watcher identifier is invalid.
144143
*/
145144
abstract public function disable($watcherId);
146145

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy