Kraken\Runtime\Container\ThreadManagerInterface::createThreads PHP Method

createThreads() public method

Create multiple thread containers at once.
See also: RuntimeManagerInterface::createThreads
public createThreads ( string[][] $definitions, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface
$definitions string[][]
$flags integer
$params mixed[]
return Kraken\Promise\PromiseInterface
    public function createThreads($definitions, $flags = Runtime::CREATE_DEFAULT, $params = []);

Usage Example

Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function createThreads($definitions, $flags = Runtime::CREATE_DEFAULT, $params = [])
 {
     return $this->threadManager->createThreads($definitions, $flags, $params);
 }