mirror of
https://github.com/danog/amp.git
synced 2024-11-27 12:35:02 +01:00
15 lines
418 B
PHP
15 lines
418 B
PHP
<?php
|
|
|
|
namespace Amp;
|
|
|
|
interface SignalReactor extends Reactor {
|
|
/**
|
|
* React to process control signals
|
|
*
|
|
* @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
|
|
*/
|
|
public function onSignal(int $signo, callable $func): string;
|
|
}
|