Php/docs/parallel-runtime.construct

来自菜鸟教程
跳转至:导航、​搜索

parallel\Runtime::__construct

(0.8.0)

parallel\Runtime::__constructRuntime Construction


说明

public parallel\Runtime::__construct ( )

Shall construct a new runtime without bootstrapping.

public parallel\Runtime::__construct ( string $bootstrap )

Shall construct a bootstrapped runtime.


参数

bootstrap
The location of a bootstrap file, generally an autoloader.


Exceptions

Warning Shall throw parallel\Runtime\Error if thread could not be created


Warning Shall throw parallel\Runtime\Bootstrap if bootstrapping failed