public function startThreads($aliases, $params = [])
{
$promises = [];
foreach ($aliases as $alias) {
$promises[] = $this->startThread($alias, $params);
}
return Promise::all($promises)->then(function () {
return 'Threads have been started.';
}, function () {
throw new RejectionException('Some of the threads could not be started.');
});
}