pthreads\Promisable::getError PHP Method

getError() protected method

protected getError ( )
    protected function getError()
    {
        return $this->error;
    }

Usage Example

Example #1
0
 public function onError(Promisable $promised)
 {
     printf("Oh noes: %s\n", (string) $promised->getError());
 }
All Usage Examples Of pthreads\Promisable::getError