function HttpCache::waitForLock
Waits for the store to release a locked entry.
1 call to HttpCache::waitForLock()
- HttpCache::lock in vendor/
symfony/ http-kernel/ HttpCache/ HttpCache.php - Locks a Request during the call to the backend.
File
-
vendor/
symfony/ http-kernel/ HttpCache/ HttpCache.php, line 734
Class
- HttpCache
- Cache provides HTTP caching.
Namespace
Symfony\Component\HttpKernel\HttpCacheCode
private function waitForLock(Request $request) : bool {
$wait = 0;
while ($this->store
->isLocked($request) && $wait < 100) {
usleep(50000);
++$wait;
}
return $wait < 100;
}