Kraken\Runtime\RuntimeManager::destroyRuntime PHP Метод

destroyRuntime() публичный Метод

public destroyRuntime ( $alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [] )
    public function destroyRuntime($alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [])
    {
        if ($this->existsThread($alias)) {
            return $this->threadManager->destroyThread($alias, $flags, $params);
        } else {
            if ($this->existsProcess($alias)) {
                return $this->processManager->destroyProcess($alias, $flags, $params);
            }
        }
        return Promise::doReject(new ResourceUndefinedException("Runtime with alias [{$alias}] does not exist."));
    }