1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 05:11:42 +01:00
amp/lib/SignalReactor.php

15 lines
423 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
2015-03-19 11:14:21 -04:00
*
* @param int $signo The signal number for which to watch
* @param callable $func A callback to invoke when the specified signal is received
* @return string Returns unique (to the process) string watcher ID
2015-02-05 18:17:05 +01:00
*/
2015-03-19 11:14:21 -04:00
public function onSignal(int $signo, callable $onSignal): string;
2015-02-05 18:17:05 +01:00
}