1
0
mirror of https://github.com/danog/amp.git synced 2024-12-14 18:37:30 +01:00
amp/lib/SignalReactor.php

16 lines
348 B
PHP
Raw Normal View History

2014-04-23 05:09:42 +02:00
<?php
2014-09-23 04:38:32 +02:00
namespace Amp;
2014-04-23 05:09:42 +02:00
interface SignalReactor extends Reactor {
2014-08-06 06:17:03 +02:00
/**
* 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
2014-04-23 05:09:42 +02:00
*/
2014-08-06 06:17:03 +02:00
public function onSignal($signo, callable $onSignal);
2014-04-23 05:09:42 +02:00
}