Results of 1 - 2 of about 2 for MyWorker (0.001 sec.)
- Submits an object for execution 11228
- « Pool::shutdown Pool::submitTo » PHP Manual Pool Submits an object for execution Pool::submit (
...
ded { public function run () { /* ... */ } } class MyWorker extends Worker { public function __construct ( Som ...
run () { /** ... **/ } } $pool = new Pool ( 8 , \ MyWorker ::class, [new Something ()]); $pool -> submit (new ...
otected]=> int(8) ["class":protected]=> string(8) "MyWorker" ["workers":protected]=> array(1) { [0]=> object(M ...
{ [0]=> object(MyWork)#3 (1) { ["worker"]=> object(MyWorker)#5 (1) { ["something"]=> object(Something)#6 (0) { ...
-
https://man.plustar.jp/php/pool.submit.html
- [similar]
- Creates a new Pool of Workers 7485
- « Pool::collect Pool::resize » PHP Manual Pool Creates a new Pool of Workers Pool::__construct (
...
rs' constructors 例 例1 Creating Pools <?php class MyWorker extends Worker { public function __construct ( Som ...
run () { /** ... **/ } } $pool = new Pool ( 8 , \ MyWorker ::class, [new Something ()]); var_dump ( $pool ); ...
otected]=> int(8) ["class":protected]=> string(8) "MyWorker" ["workers":protected]=> NULL ["work":protected]=> ...
-
https://man.plustar.jp/php/pool.construct.html
- [similar]
PREV
1
NEXT