File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,15 @@ public static function supports($feature) {
222
222
return self ::get ()->supports ($ feature );
223
223
}
224
224
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
+ return self ::get ()->getLoopHandle ();
232
+ }
233
+
225
234
/**
226
235
* Disable construction as this is a static class.
227
236
*/
Original file line number Diff line number Diff line change @@ -151,4 +151,13 @@ public function unreference($eventIdentifier);
151
151
* @return bool
152
152
*/
153
153
public function supports ($ feature );
154
+
155
+ /**
156
+ * Get the underlying loop handle.
157
+ *
158
+ * Example: the uv_loop resource for libuv or the EvLoop object for libev or null for a native driver
159
+ *
160
+ * @return null|object|resource The loop handle the event loop operates on. Null if there is none.
161
+ */
162
+ public static function getLoopHandle ();
154
163
}
You can’t perform that action at this time.
0 commit comments