public function join()
    {
        if ($this->isExternal()) {
            $this->communicator->getLoop()->stop();
        } else {
            $this->callOnChild(__FUNCTION__, func_get_args());
        }
    }
public function join()
    {
        if ($this->isExternal()) {
            $this->communicator->getLoop()->stop();
        } else {
            $this->callOnChild(__FUNCTION__, func_get_args());
        }
    }
public function join ( ) { if ( $ this -> isExternal ( ) ) { $ this -> communicator -> getLoop ( ) -> stop ( ) ; } else { $ this -> callOnChild ( __FUNCTION__ , func_get_args ( ) ) ; } }
Stop thread after current works done and return
Stop thread after current works done and return