Thread::join PHP Méthode

join() public méthode

Causes the calling context to wait for the referenced Thread to finish executing
public join ( ) : boolean
Résultat boolean A boolean indication of state
    public function join()
    {
    }

Usage Example

 /**
  * @expectedException RuntimeException
  */
 public function testThreadAlreadyJoined()
 {
     $thread = new Thread();
     $this->assertEquals($thread->start(), true);
     $this->assertEquals($thread->join(), true);
     $this->assertEquals($thread->join(), false);
 }
All Usage Examples Of Thread::join