Skip to content

Commit a020880

Browse files
committed
getLoopHandle() => getHandle() on Driver only
1 parent 07d3408 commit a020880

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/Loop.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,6 @@ public static function supports($feature) {
222222
return self::get()->supports($feature);
223223
}
224224

225-
/**
226-
* Get the underlying loop handle.
227-
*
228-
* @return null|object|resource The loop handle the event loop operates on. Null if there is none.
229-
*/
230-
public static function getLoopHandle()
231-
{
232-
return self::get()->getLoopHandle();
233-
}
234-
235225
/**
236226
* Disable construction as this is a static class.
237227
*/

src/LoopDriver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ public function supports($feature);
157157
*
158158
* Example: the uv_loop resource for libuv or the EvLoop object for libev or null for a native driver
159159
*
160+
* Note: This function is *not* exposed in the Loop class; users shall access it directly on the respective loop instance.
161+
*
160162
* @return null|object|resource The loop handle the event loop operates on. Null if there is none.
161163
*/
162-
public static function getLoopHandle();
164+
public static function getHandle();
163165
}

0 commit comments

Comments
 (0)