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
コード例 #1
0
ファイル: Semaphore.php プロジェクト: icicleio/concurrent
 /**
  * {@inheritdoc}
  */
 public function acquire() : \Generator
 {
     return $this->semaphore->acquire();
 }
コード例 #2
0
ファイル: Semaphore.php プロジェクト: Nik-ADA/concurrent
 /**
  * {@inheritdoc}
  */
 public function acquire()
 {
     return $this->semaphore->acquire();
 }