Results of 1 - 10 of about 56 for Runtime (0.002 sec.)
- The parallel\Runtime class | PHP 8.3 11595
- The parallel\Runtime class (0.8.0) Runtime Objects Each runtime represents a single PHP thread, the thread is created (and bootstrapped) upon construction. The thread then waits for tasks to be scheduled: Scheduled tasks will be executed FI
... til more tasks are scheduled, or it's closed, killed, or destroyed by the normal scoping rules of PHP objects. 警告 When a runtime is destroyed by the normal scoping rules of PHP objects, it will first execute all of the tasks that were scheduled, and b ... lock while doing so. Runtime Bootstrapping When a new runtime is created, it does not share code with the thread (or process) that created it. This mea ... ns it doesn't have the same classes and functions loaded, nor the same autoloader set. In some cases, a very lightweight runtime is desirable because the tasks that will be scheduled do not need access to the code in the parent thread. In those cases ...
-
https://man.mtool.work/php/8.3/class.parallel-runtime.html
- parallel\Runtime::__construct — Runtime Construction | PHP 8.3 11345
- parallel\Runtime::__construct (0.8.0) parallel\Runtime::__construct — Runtime Construction 説明 public function parallel\Runtime::__construct () Shall construct a new runtime without bootstrapping. public function parallel\Runtime::__constr
... uct ( string $bootstrap ) Shall construct a bootstrapped runtime. パラメータ bootstrap The location of a bootstrap file, generally an autoloader. Exceptions 警告 Shall throw parallel\Runt ... ime\Error if thread could not be created 警告 Shall throw parallel\Runtime\Bootstrap if bootstrapping failed 他のマニュアルの関連ページ Linux JM sched(7) ...
-
https://man.mtool.work/php/8.3/parallel-runtime.construct.html
- parallel | PHP 8.3 11271
- 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 p ... assed to parallel\Runtime::__construct() , this is typically an autoloader, or some other preloading routine: The bootstrap file will be included be ... fore 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\Runtime::r ...
-
https://man.mtool.work/php/8.3/book.parallel.html
- parallel\Runtime::close — Runtime Graceful Join | PHP 8.3 10711
- parallel\Runtime::close (0.8.0) parallel\Runtime::close — Runtime Graceful Join 説明 public function parallel\Runtime::close (): void Shall request that the runtime shutsdown. 注意 : Tasks scheduled for execution will be executed before the
... shutdown occurs. Exceptions 警告 Shall throw parallel\Runtime\Error\Closed if Runtime was already closed. 他のマニュアルの関連ページ Linux JM join(1) Linux JM sched(7) Django index Duc ...
-
https://man.mtool.work/php/8.3/parallel-runtime.close.html
- parallel\Runtime::kill — Runtime Join | PHP 8.3 10505
- parallel\Runtime::kill (0.8.0) parallel\Runtime::kill — Runtime Join 説明 public function parallel\Runtime::kill (): void Shall attempt to force the runtime to shutdown. 注意 : Tasks scheduled for execution will not be executed, the current
... shall be interrupted. 警告 Internal function calls in progress cannot be interrupted. Exceptions 警告 Shall throw parallel\Runtime\Error\Closed if Runtime was closed. 他のマニュアルの関連ページ Linux JM kill(1) Linux JM kill(2) Docker kill Linux JM join ...
-
https://man.mtool.work/php/8.3/parallel-runtime.kill.html
- parallel\run — Execution | PHP 8.3 10196
- 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 call to parallel\run() is idle, it will be used to execute the task. If no \pa ... rallel\Runtime is idle parallel will create and cache a \parallel\Runtime . 注意 : \parallel\Runtime objects created by the programmer ar ... rallel\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 task is a closure ...
-
https://man.mtool.work/php/8.3/parallel.run.html
- parallel\Runtime::run — Execution | PHP 8.3 9989
- 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
... rallel\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 task is a closure ... created from an internal function. 警告 Shall throw parallel\Runtime\Error\IllegalInstruction if task contains illegal instructions. 警告 Shall throw parallel\Runtime\Error\IllegalParameter i ... f task accepts or argv contains illegal variables. 警告 Shall throw parallel\Runtime\Error\IllegalReturn if task returns illegally. 他のマニュアルの関連ページ Linux JM accept(2) Linux JM named(8) Python asyn ...
-
https://man.mtool.work/php/8.3/parallel-runtime.run.html
- The Swoole\Runtime class | PHP 8.3 9547
- The Swoole\Runtime class (No version information available, might only be in Git) はじめに Swoole\Runtime provides coroutine support for various PHP functions through hook mechanism, allowing synchronous code to work asynchronously in corou
... tine environment. クラス概要 class Swoole\Runtime { /* メソッド */ public static function enableCoroutine ( int $flags = SWOOLE_HOOK_ALL ): void public static function getH ... ookFlags (): int public static function setHookFlags ( int $flags ): bool } 目次 Swoole\Runtime::enableCoroutine — Enable coroutine for specified functions Swoole\Runtime::getHookFlags — Get current hook flags Swoole\R ...
-
https://man.mtool.work/php/8.3/class.swoole-runtime.html
- The parallel\Future class | PHP 8.3 8796
- The parallel\Future class (0.8.0) Futures A Future represents the return value or uncaught exception from a task, and exposes an API for cancellation. 例1 Example showing Future as return value <?php $runtime = new \parallel\Runtime ; $futu
... re = $runtime -> run (function(){ return "World" ; }); printf ( "Hello %s\n" , $future -> value ()); ?> 上の例の出力は、 たとえば以下のよ ... n point even where the task does not return a value explicitly. 例2 Example showing Future as synchronization point <?php $runtime = new \parallel\Runtime ; $future = $runtime -> run (function(){ echo "in child " ; for ( $i = 0 ; $i < 500 ; $i ++) { if ...
-
https://man.mtool.work/php/8.3/class.parallel-future.html
- Swoole\Runtime::setHookFlags — Set hook flags for coroutine | PHP 8.3 8427
- Swoole\Runtime::setHookFlags (No version information available, might only be in Git) Swoole\Runtime::setHookFlags — Set hook flags for coroutine 説明 public static function Swoole\Runtime::setHookFlags ( int $flags ): bool Sets the hook fl
... ags for coroutine support. This dynamically changes the hook flags at runtime. パラメータ flags Bitmask of flags specifying which functions to hook. Same flags as enableCoroutine. 戻り値 成功した場合に ...
-
https://man.mtool.work/php/8.3/swoole-runtime.set-hook-flags.html