mirror of
https://github.com/danog/amp.git
synced 2024-12-03 18:07:57 +01:00
Update EventLoopDriver.php
This commit is contained in:
parent
dace2d8226
commit
882723d7e2
@ -75,7 +75,7 @@ interface EventLoopDriver
|
|||||||
*
|
*
|
||||||
* @return string An identifier that can be used to cancel, enable or disable the event.
|
* @return string An identifier that can be used to cancel, enable or disable the event.
|
||||||
*/
|
*/
|
||||||
public function onSignal(int $signo, callable $callback);
|
public function onSignal($signo, callable $callback);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute a callback when an error occurs.
|
* Execute a callback when an error occurs.
|
||||||
@ -93,7 +93,7 @@ interface EventLoopDriver
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function enable(string $eventIdentifier);
|
public function enable($eventIdentifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disable an event.
|
* Disable an event.
|
||||||
@ -102,7 +102,7 @@ interface EventLoopDriver
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function disable(string $eventIdentifier);
|
public function disable($eventIdentifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancel an event.
|
* Cancel an event.
|
||||||
@ -111,7 +111,7 @@ interface EventLoopDriver
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function cancel(string $eventIdentifier);
|
public function cancel($eventIdentifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference an event.
|
* Reference an event.
|
||||||
@ -122,7 +122,7 @@ interface EventLoopDriver
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function reference(string $eventIdentifier);
|
public function reference($eventIdentifier);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unreference an event.
|
* Unreference an event.
|
||||||
@ -134,5 +134,5 @@ interface EventLoopDriver
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function unreference(string $eventIdentifier);
|
public function unreference($eventIdentifier);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user