acquire() public method

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
return Generator
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function acquire() : \Generator
 {
     return $this->semaphore->acquire();
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function acquire()
 {
     return $this->semaphore->acquire();
 }