Method | Description | |
---|---|---|
createThread ( string $alias, string $name, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Create a new thread container. | |
createThreads ( string[][] $definitions, integer $flags = Runtime::CREATE_DEFAULT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Create multiple thread containers at once. | |
destroyThread ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Destroy existing container. | |
destroyThreads ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Destroy multiple thread containers at once. | |
existsThread ( string $alias ) : boolean | Check if thread container exists. | |
flushThreads ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface | Flush threads without destroying them. | |
getThreads ( ) : Kraken\Promise\PromiseInterface | Get list of existing thread containers. | |
startThread ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Start existing thread container. | |
startThreads ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Start multiple thread container at once. | |
stopThread ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Stop existing thread container. | |
stopThreads ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | Stop multiple thread container at once. |
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 destroyThread ( string $alias, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | ||
$alias | string | |
$flags | integer | |
$params | mixed[] | |
return | Kraken\Promise\PromiseInterface |
public destroyThreads ( string[] $aliases, integer $flags = Runtime::DESTROY_FORCE_SOFT, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | ||
$aliases | string[] | |
$flags | integer | |
$params | mixed[] | |
return | Kraken\Promise\PromiseInterface |
public existsThread ( string $alias ) : boolean | ||
$alias | string | |
return | boolean |
public flushThreads ( integer $flags = Runtime::DESTROY_KEEP ) : Kraken\Promise\PromiseInterface | ||
$flags | integer | |
return | Kraken\Promise\PromiseInterface |
public getThreads ( ) : Kraken\Promise\PromiseInterface | ||
return | Kraken\Promise\PromiseInterface |
public startThread ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | ||
$alias | string | |
$params | mixed[] | |
return | Kraken\Promise\PromiseInterface |
public startThreads ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | ||
$aliases | string[] | |
$params | mixed[] | |
return | Kraken\Promise\PromiseInterface |
public stopThread ( string $alias, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | ||
$alias | string | |
$params | mixed[] | |
return | Kraken\Promise\PromiseInterface |
public stopThreads ( string[] $aliases, mixed[] $params = [] ) : Kraken\Promise\PromiseInterface | ||
$aliases | string[] | |
$params | mixed[] | |
return | Kraken\Promise\PromiseInterface |