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

23 lines
618 B
PHP
Raw Normal View History

2015-02-05 18:17:05 +01:00
<?php
namespace Amp;
2015-07-20 21:42:42 +02:00
interface ExtensionReactor extends Reactor {
2015-02-05 18:17:05 +01:00
/**
* React to process control signals
2015-03-23 16:07:40 +01:00
*
2015-03-19 16:14:21 +01:00
* @param int $signo The signal number for which to watch
* @param callable $func A callback to invoke when the specified signal is received
* @param array $options Watcher options
2015-03-19 16:14:21 +01:00
* @return string Returns unique (to the process) string watcher ID
2015-02-05 18:17:05 +01:00
*/
2015-04-30 19:41:14 +02:00
public function onSignal($signo, callable $func, array $options = []);
2015-07-20 21:42:42 +02:00
/**
* Retrieve the underlying event loop representation
*
* @return mixed
*/
public function getUnderlyingLoop();
2015-02-05 18:17:05 +01:00
}