Kraken\Runtime\Container\ThreadManagerInterface::destroyThread PHP Метод

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

Flags might be one of: Runtime::DESTROY_KEEP - sets manager to not destroy runtime Runtime::DESTROY_FORCE_SOFT - destroys runtime by sending message to shutdown Runtime::DESTROY_FORCE_HARD - destroys runtime forcefully and immediately Runtime::DESTROY_FORCE - first, tries to gracefully destroy runtime by sending message to shutdown, if it does not receive answer, then closes it forcefully.
public destroyThread ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$alias string
$flags integer
$params mixed[]
Результат Kraken\Promise\PromiseInterface
    public function destroyThread($alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = []);

Usage Example

Пример #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function destroyThread($alias, $flags = Runtime::DESTROY_FORCE_SOFT, $params = [])
 {
     return $this->threadManager->destroyThread($alias, $flags, $params);
 }