acquire() public méthode

If a lock is not available, we add the request to a queue and set a timer to check again in the future.
public acquire ( ) : Generator
Résultat Generator
Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function acquire() : \Generator
 {
     return $this->semaphore->acquire();
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function acquire()
 {
     return $this->semaphore->acquire();
 }