Thread
PHP Manual

Thread::run

(PECL pthreads >= 0.0.33)

Thread::runThis is the method that pthreads runs asynchronously for the programmer.

说明

abstract public mixed Thread::run ( void )

A run method is just like any other member function, it has access to any members that were set before the call to Thread::start() was made. A run methods return value must be serializeable to be passed as the result of Thread::join(). Unserializeable data will generate a warning for the context that calls Thread::join().

参数

此函数没有参数。

返回值


Thread
PHP Manual