1
0
mirror of https://github.com/danog/amp.git synced 2025-01-10 15:08:19 +01:00
amp/lib/SignalReactor.php

16 lines
333 B
PHP
Raw Normal View History

2015-02-05 18:17:05 +01:00
<?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);
}