acquire() public method

Attempts to acquire the lock and sleeps for a time if the lock could not be acquired.
public acquire ( ) : Generator
return Generator
Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function acquire()
 {
     return $this->mutex->acquire();
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function acquire() : \Generator
 {
     return $this->mutex->acquire();
 }