/** * @param $key * @param $value */ private function storeChildTask($key, $value) { $this->semaphore->lock(); $this->storageSystem->store($key, $value); $this->semaphore->unLock(); }
/** * @return array */ public function fetch() { return $this->storageSystem->getStoredTasks(); }