« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 76 for parallel (0.003 sec.)
parallel | PHP 8.3 11498
parallel はじめに parallel is a parallel concurrency extension for PHP ≥ 7.2.0. As of parallel 1.2.0, PHP ≥ 8.0.0 is required. A brief description of the concepts core to parallel follows, more detailed information may be found within this ... section of the manual. Runtime A parallel\Runtime represents a PHP interpreter thread. A parallel\Runtime is configured with an optional bootstrap file passed to pa ... or some other preloading routine: The bootstrap file will be included before any task is executed. After construction the parallel\Runtime remains available until it is closed, killed, or destroyed by the normal scoping rules of PHP objects. parallel\Ru ... ntime::run() allows the programmer to schedule tasks for execution in parallel. A parallel\Runtime has a FIFO schedule, tasks will be executed in the order that they are scheduled. Functional API paral ...
https://man.mtool.work/php/8.3/book.parallel.html
parallel\run — Execution | PHP 8.3 9780
parallel\run (1.0.0) parallel\run — Execution 説明 function parallel\run ( Closure $task ): ? Future Shall schedule task for execution in parallel. function parallel\run ( Closure $task , array $argv ): ? Future Shall schedule task for exec ... ution in parallel, passing argv at execution time. Automatic Scheduling If a \parallel\Runtime internally created and cached by a previous c ... all to parallel\run() is idle, it will be used to execute the task. If no \parallel\Runtime is idle parallel will create and cache a \para ... llel\Runtime . 注意 : \parallel\Runtime objects created by the programmer are not used for automatic scheduling. パラメータ task A Closure with specific c ...
https://man.mtool.work/php/8.3/parallel.run.html
The parallel\Events class | PHP 8.3 9558
The parallel\Events class (0.9.0) The Event Loop The Event loop monitors the state of sets of futures and or channels (targets) in order to perform read ( parallel\Future::value() , parallel\Channel::recv() ) and write ( parallel\Channel::s ... s the targets become available and the operations may be performed without blocking the event loop. クラス概要 final class parallel\Events implements Countable , Traversable { /* Input */ public function setInput ( Input $input ): void /* Targets */ publ ... ic function addChannel ( parallel\Channel $channel ): void public function addFuture ( string $name , parallel\Future $future ): void public function remove ... ocking ( bool $blocking ): void public function setTimeout ( int $timeout ): void /* Polling */ public function poll (): ? parallel\Events\Event } 目次 parallel\Events::setBlocking — Behaviour parallel\Events::setTimeout — Behaviour parallel\Events::setI ...
https://man.mtool.work/php/8.3/class.parallel-events.html
parallel\Runtime::run — Execution | PHP 8.3 9295
parallel\Runtime::run (0.8.0) parallel\Runtime::run — Execution 説明 public function parallel\Runtime::run ( Closure $task ): ? Future Shall schedule task for execution in parallel. public function parallel\Runtime::run ( Closure $task , ar ... ray $argv ): ? Future Shall schedule task for execution in parallel, passing argv at execution time. パラメータ task A Closure with specific characteristics. argv An array of arguments with ... specific characteristics to be passed to task at execution time. Task Characteristics Closures scheduled for parallel execution must not: accept or return by reference accept or return internal objects (see notes) execute a limited set of i ... nstructions Instructions prohibited in Closures intended for parallel execution are: yield use by-reference declare class declare named function 注意 : Nested closures may yield or use by-refe ...
https://man.mtool.work/php/8.3/parallel-runtime.run.html
プロセス制御 | PHP 8.3 9295
プロセス制御 Eio インストール/設定 定義済み定数 例 Eio 関数 Ev インストール/設定 例 ウォッチャー ウォッチャーのコールバック Periodic ウォッチャーの操作モード Ev — Ev クラス EvCheck — EvCheck クラス EvChild — EvChild クラス EvEmbed — EvEmbed ... インストール/設定 定義済み定数 POSIX 関数 プログラムの実行 — システムプログラムの実行 インストール/設定 プログラム実行関数 parallel Installation Philosophy Functional API parallel\Runtime — The parallel\Runtime class parallel\Future — The parallel\Future ... class parallel\Channel — The parallel\Channel class parallel\Events — The parallel\Events class parallel\Events\Input — The parallel\Even ... ts\Input class parallel\Events\Event — The parallel\Events\Event class parallel\Events\Event\Type — The parallel\Events\Event\Type class parallel\ ...
https://man.mtool.work/php/8.3/refs.fileprocess.process.html
The parallel\Events\Input class | PHP 8.3 9170
The parallel\Events\Input class (0.9.0) Events Input An Input object is a container for data that the parallel\Events object will write to parallel\Channel objects as they become available. Multiple event loops may share an Input container ... - parallel does not verify the contents of the container when it is set as the input for a parallel\Events object. 注意 : When a para ... llel\Events object performs a write, the target is removed from the input object as if parallel\Events\Input::remove() were called. クラス概要 final class parallel\Events\Input { public function add ( string $target , ... mixed $value ): void public function remove ( string $target ): void public function clear (): void } 目次 parallel\Events\Input::add — Inputs parallel\Events\Input::clear — Inputs parallel\Events\Input::remove — Inputs 他のマニュアルの関 ...
https://man.mtool.work/php/8.3/class.parallel-events-input.html
The parallel\Channel class | PHP 8.3 9129
The parallel\Channel class (0.9.0) Unbuffered Channels An unbuffered channel will block on calls to parallel\Channel::send() until there is a receiver, and block on calls to parallel\Channel::recv() until there is a sender. This means an un ... ay to share data among tasks, requiring the least copying. Buffered Channels A buffered channel will not block on calls to parallel\Channel::send() until capacity is reached, calls to parallel\Channel::recv() will block until there is data in the buffer. ... Closures over Channels A powerful feature of parallel channels is that they allow the exchange of closures between tasks (and runtimes). When a closure is sent over a channel t ... red. Anonymous Channels The anonymous channel constructor allows the programmer to avoid assigning names to every channel: parallel will generate a unique name for anonymous channels. クラス概要 final class parallel\Channel { /* Anonymous Constructor */ ...
https://man.mtool.work/php/8.3/class.parallel-channel.html
parallel\bootstrap — Bootstrapping | PHP 8.3 8907
parallel\bootstrap (1.0.0) parallel\bootstrap — Bootstrapping 説明 function parallel\bootstrap ( string $file ): void Shall use the provided file to bootstrap all runtimes created for automatic scheduling via parallel\run() . パラメータ fil ... e Path to the file to bootstrap all runtimes. 戻り値 値を返しません。 エラー / 例外 警告 Shall throw parallel\Runtime\Error\Bootstrap if previously called for this process. 警告 Shall throw parallel\Runtime\Error\Bootstrap if called ... after parallel\run() . 参考 parallel\Runtime::run 他のマニュアルの関連ページ Docker docker buildx inspect ...
https://man.mtool.work/php/8.3/parallel.bootstrap.html
parallel\Future::value — Resolution | PHP 8.3 8838
parallel\Future::value (0.8.0) parallel\Future::value — Resolution 説明 public function parallel\Future::value (): mixed Shall return (and if necessary wait for) return from task Exceptions 警告 Shall throw parallel\Future\Error if waiting ... failed (internal error). 警告 Shall throw parallel\Future\Error\Killed if parallel\Runtime executing task was killed. 警告 Shall throw parallel\Future\Error\Cancelled if tas ... k was cancelled. 警告 Shall throw parallel\Future\Error\Foreign if task raised an unrecognized uncaught exception. 警告 Shall rethrow Throwable uncaught in task 他の ...
https://man.mtool.work/php/8.3/parallel-future.value.html
The parallel\Sync class | PHP 8.3 8810
The parallel\Sync class (1.1.0) Low Level Synchronization The parallel\Sync class provides access to low level synchronization primitives, mutex, condition variables, and allows the implementation of semaphores. Synchronization for most app ... ses authors of low level code may find it useful to be able to access these lower level mechanisms. クラス概要 final class parallel\Sync { /* Constructor */ public function __construct () public function __construct ( scalar $value ) /* Access */ public ... */ public function wait () public function notify ( bool $all = ? ) public function __invoke ( callable $critical ) } 目次 parallel\Sync::__construct — Construction parallel\Sync::get — Access parallel\Sync::set — Access parallel\Sync::wait — Synchroniza ... tion parallel\Sync::notify — Synchronization parallel\Sync::__invoke — Synchronization 他のマニュアルの関連ページ Linux JM access(2) Lin ...
https://man.mtool.work/php/8.3/class.parallel-sync.html
PREV 1 2 3 4 5 6 7 8 NEXT