Aerys\WatcherProcess::doStop PHP Method

doStop() protected method

protected doStop ( ) : Generator
return Generator
    protected function doStop() : \Generator
    {
        if (!$this->stopPromisor) {
            $this->stopPromisor = new Deferred();
            foreach ($this->ipcClients as $ipcClient) {
                @\fwrite($ipcClient, "\n");
            }
        }
        (yield $this->stopPromisor === true ? new Success() : $this->stopPromisor->promise());
    }