1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-30 04:39:01 +01:00

Shorten job IDs

This commit is contained in:
Aaron Piotrowski 2017-12-13 21:28:08 -06:00
parent f4411805d6
commit fc4c2a07b7
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -13,8 +13,10 @@ class Job {
private $task;
public function __construct(Task $task) {
static $id = 'a';
$this->task = $task;
$this->id = \spl_object_hash($this->task);
$this->id = $id++;
}
public function getId(): string {