src/Pcntl/Thread.php
public function setRunnable($runnable)
    {
        if (self::isRunnableOk($runnable)) {
            $this->runnable = $runnable;
        } else {
            $this->fatalError(Thread::FUNCTION_NOT_CALLABLE);
        }
    }
public function setRunnable($runnable)
    {
        if (self::isRunnableOk($runnable)) {
            $this->runnable = $runnable;
        } else {
            $this->fatalError(Thread::FUNCTION_NOT_CALLABLE);
        }
    }
public function setRunnable ( $ runnable ) { if ( self :: isRunnableOk ( $ runnable ) ) { $ this -> runnable = $ runnable ; } else { $ this -> fatalError ( Thread :: FUNCTION_NOT_CALLABLE ) ; } }
Sets the callback

@param callback $runnable Callback reference

@return callback
Sets the callback