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
示例#1
0
 /**
  * {@inheritdoc}
  */
 public function acquire()
 {
     return $this->mutex->acquire();
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function acquire() : \Generator
 {
     return $this->mutex->acquire();
 }