Skip to content

Commit b7ed0af

Browse files
committed
Add "or cancelled" to throw condition
1 parent 61c13e2 commit b7ed0af

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Loop.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public static function onSignal($signo, callable $callback, $data = null)
226226
*
227227
* @return void
228228
*
229-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
229+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
230230
*/
231231
public static function enable($watcherId)
232232
{
@@ -240,7 +240,7 @@ public static function enable($watcherId)
240240
*
241241
* @return void
242242
*
243-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
243+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
244244
*/
245245
public static function disable($watcherId)
246246
{
@@ -254,7 +254,7 @@ public static function disable($watcherId)
254254
*
255255
* @return void
256256
*
257-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
257+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
258258
*/
259259
public static function cancel($watcherId)
260260
{
@@ -271,7 +271,7 @@ public static function cancel($watcherId)
271271
*
272272
* @return void
273273
*
274-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
274+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
275275
*/
276276
public static function reference($watcherId)
277277
{
@@ -288,7 +288,7 @@ public static function reference($watcherId)
288288
*
289289
* @return void
290290
*
291-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
291+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
292292
*/
293293
public static function unreference($watcherId)
294294
{

src/Loop/Driver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function onSignal($signo, callable $callback, $data = null);
106106
*
107107
* @return void
108108
*
109-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
109+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
110110
*/
111111
public function enable($watcherId);
112112

@@ -117,7 +117,7 @@ public function enable($watcherId);
117117
*
118118
* @return void
119119
*
120-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
120+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
121121
*/
122122
public function disable($watcherId);
123123

@@ -128,7 +128,7 @@ public function disable($watcherId);
128128
*
129129
* @return void
130130
*
131-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
131+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
132132
*/
133133
public function cancel($watcherId);
134134

@@ -142,7 +142,7 @@ public function cancel($watcherId);
142142
*
143143
* @return void
144144
*
145-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
145+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
146146
*/
147147
public function reference($watcherId);
148148

@@ -156,7 +156,7 @@ public function reference($watcherId);
156156
*
157157
* @return void
158158
*
159-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid.
159+
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
160160
*/
161161
public function unreference($watcherId);
162162

0 commit comments

Comments
 (0)