php8.5
Home/ Manual/ parallel / runtime/ parallel\Runtime::__construct

parallel\Runtime::__construct

PHP function Edit on GitHub ✎

(0.8.0)

Runtime Construction

Description

parallel\Runtime::__construct()

Shall construct a new runtime without bootstrapping.

parallel\Runtime::__construct(string $bootstrap)

Shall construct a bootstrapped runtime.

Parameters

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

Source: reference/parallel/parallel/runtime/construct.xml · from the official PHP manual (php/doc-en)