public function start()
{
declare (ticks=1);
register_shutdown_function(array($this, "shutdown"));
pcntl_signal(SIGTERM, array($this, "signalHandler"));
pcntl_signal(SIGINT, array($this, "signalHandler"));
$this->output->writeln("<info>Starting <comment>" . $this->config->getName() . "</comment>.</info>");
$this->dispatcher->dispatch(WorkerEvents::STARTED, new WorkerStartedEvent($this));
// A dummy timer to keep a process on a system.
$this->eventLoop->addPeriodicTimer(10, function () {
});
$this->output->writeln('<info>Successfully booted. Quit working with CONTROL-C.</info>');
// Start event loop.
$this->eventLoop->run();
}