Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HttpCache.php

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\HttpCache

Code

private function waitForLock(Request $request) : bool {
    $wait = 0;
    while ($this->store
        ->isLocked($request) && $wait < 100) {
        usleep(50000);
        ++$wait;
    }
    return $wait < 100;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal