mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
16 lines
333 B
PHP
16 lines
333 B
PHP
<?php
|
|
|
|
namespace Amp;
|
|
|
|
interface SignalReactor extends Reactor {
|
|
|
|
/**
|
|
* React to process control signals
|
|
*
|
|
* @param int $signo The signal number to watch for
|
|
* @param callable $onSignal
|
|
* @return int Returns a unique integer watcher ID
|
|
*/
|
|
public function onSignal($signo, callable $onSignal);
|
|
}
|