mirror of
https://github.com/danog/amp.git
synced 2024-12-03 18:07:57 +01:00
getLoopHandle() => getHandle() on Driver only
This commit is contained in:
parent
07d3408743
commit
a020880d53
10
src/Loop.php
10
src/Loop.php
@ -222,16 +222,6 @@ final class Loop
|
||||
return self::get()->supports($feature);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the underlying loop handle.
|
||||
*
|
||||
* @return null|object|resource The loop handle the event loop operates on. Null if there is none.
|
||||
*/
|
||||
public static function getLoopHandle()
|
||||
{
|
||||
return self::get()->getLoopHandle();
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable construction as this is a static class.
|
||||
*/
|
||||
|
@ -157,7 +157,9 @@ interface LoopDriver
|
||||
*
|
||||
* Example: the uv_loop resource for libuv or the EvLoop object for libev or null for a native driver
|
||||
*
|
||||
* Note: This function is *not* exposed in the Loop class; users shall access it directly on the respective loop instance.
|
||||
*
|
||||
* @return null|object|resource The loop handle the event loop operates on. Null if there is none.
|
||||
*/
|
||||
public static function getLoopHandle();
|
||||
public static function getHandle();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user