Skip to content

Commit 104b761

Browse files
committed
Revert "Merge pull request #63 from async-interop/throw-on-invalid-watcher"
This reverts commit 5bd7794, reversing changes made to 6449495. Revert too quick merge (sorry) as per #58
1 parent 5bd7794 commit 104b761

File tree

3 files changed

+0
-35
lines changed

3 files changed

+0
-35
lines changed

src/Loop.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
use Interop\Async\Loop\Driver;
66
use Interop\Async\Loop\DriverFactory;
7-
use Interop\Async\Loop\InvalidWatcherException;
8-
use Interop\Async\Loop\UnsupportedFeatureException;
97

108
final class Loop
119
{
@@ -211,8 +209,6 @@ public static function onWritable($stream, callable $callback, $data = null)
211209
* @param mixed $data Arbitrary data given to the callback function as the $data parameter.
212210
*
213211
* @return string An identifier that can be used to cancel, enable or disable the watcher.
214-
*
215-
* @throws UnsupportedFeatureException Thrown if signal handling is not supported.
216212
*/
217213
public static function onSignal($signo, callable $callback, $data = null)
218214
{
@@ -225,8 +221,6 @@ public static function onSignal($signo, callable $callback, $data = null)
225221
* @param string $watcherId The watcher identifier.
226222
*
227223
* @return void
228-
*
229-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
230224
*/
231225
public static function enable($watcherId)
232226
{
@@ -239,8 +233,6 @@ public static function enable($watcherId)
239233
* @param string $watcherId The watcher identifier.
240234
*
241235
* @return void
242-
*
243-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
244236
*/
245237
public static function disable($watcherId)
246238
{
@@ -253,8 +245,6 @@ public static function disable($watcherId)
253245
* @param string $watcherId The watcher identifier.
254246
*
255247
* @return void
256-
*
257-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
258248
*/
259249
public static function cancel($watcherId)
260250
{
@@ -270,8 +260,6 @@ public static function cancel($watcherId)
270260
* @param string $watcherId The watcher identifier.
271261
*
272262
* @return void
273-
*
274-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
275263
*/
276264
public static function reference($watcherId)
277265
{
@@ -287,8 +275,6 @@ public static function reference($watcherId)
287275
* @param string $watcherId The watcher identifier.
288276
*
289277
* @return void
290-
*
291-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
292278
*/
293279
public static function unreference($watcherId)
294280
{

src/Loop/Driver.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ public function onSignal($signo, callable $callback, $data = null);
105105
* @param string $watcherId The watcher identifier.
106106
*
107107
* @return void
108-
*
109-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
110108
*/
111109
public function enable($watcherId);
112110

@@ -116,8 +114,6 @@ public function enable($watcherId);
116114
* @param string $watcherId The watcher identifier.
117115
*
118116
* @return void
119-
*
120-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
121117
*/
122118
public function disable($watcherId);
123119

@@ -127,8 +123,6 @@ public function disable($watcherId);
127123
* @param string $watcherId The watcher identifier.
128124
*
129125
* @return void
130-
*
131-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
132126
*/
133127
public function cancel($watcherId);
134128

@@ -141,8 +135,6 @@ public function cancel($watcherId);
141135
* @param string $watcherId The watcher identifier.
142136
*
143137
* @return void
144-
*
145-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
146138
*/
147139
public function reference($watcherId);
148140

@@ -155,8 +147,6 @@ public function reference($watcherId);
155147
* @param string $watcherId The watcher identifier.
156148
*
157149
* @return void
158-
*
159-
* @throws InvalidWatcherException Thrown if the watcher identifier is invalid or cancelled.
160150
*/
161151
public function unreference($watcherId);
162152

src/Loop/InvalidWatcherException.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)