1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 12:35:02 +01:00
amp/lib/SignalReactor.php

16 lines
359 B
PHP
Raw Normal View History

2014-04-23 05:09:42 +02:00
<?php
namespace Alert;
interface SignalReactor extends Reactor {
/**
2014-06-11 17:01:46 +02:00
* React to process control signals
2014-04-23 05:09:42 +02:00
*
* @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);
}