mirror of
https://github.com/danog/amp.git
synced 2024-12-14 18:37:30 +01:00
16 lines
355 B
PHP
16 lines
355 B
PHP
|
<?php
|
||
|
|
||
|
namespace Alert;
|
||
|
|
||
|
interface SignalReactor extends Reactor {
|
||
|
|
||
|
/**
|
||
|
* React to POSIX-style signals
|
||
|
*
|
||
|
* @param int $signal The signal to watch for (e.g. 2 for SIGINT)
|
||
|
* @param callable $onSignal
|
||
|
* @return int Returns a unique integer watcher ID
|
||
|
*/
|
||
|
public function onSignal($signal, callable $onSignal);
|
||
|
}
|