parallel\Runtime::runExecution 説明
public Futurenull parallel\Runtime::run(Closure
$task )
Shall schedule
public Futurenull parallel\Runtime::run(Closure
$task , array $argv )
Shall schedule パラメータ
Task CharacteristicsClosures scheduled for parallel execution must not:
Instructions prohibited in Closures intended for parallel execution are:
Arguments CharacteristicsArguments must not:
Internal Objects NotesInternal objects generally use a custom structure which cannot be copied by value safely, PHP currently lacks the mechanics to do this (without serialization) and so only objects that do not use a custom structure may be shared. Some internal objects do not use a custom structure, for example parallel\Events\Event and so may be shared. Closures are a special kind of internal object and support being copied by value, and so may be shared. Channels are central to writing parallel code and support concurrent access and execution by necessity, and so may be shared. 警告
A user class that extends an internal class may use a custom structure as defined by the internal class, in which case they cannot be copied by value safely, and so may not be shared. 戻り値警告
The return parallel\Future must not be ignored when the task contains a return or throw statement. Exceptions警告
Shall throw parallel\Runtime\Error\Closed if parallel\Runtime was closed. 警告
Shall throw parallel\Runtime\Error\IllegalFunction if 警告
Shall throw parallel\Runtime\Error\IllegalInstruction if 警告
Shall throw parallel\Runtime\Error\IllegalParameter if 警告
Shall throw parallel\Runtime\Error\IllegalReturn if |