| 1 | <?php | ||
| 19 | class Pool extends BasePool | ||
| 20 | { | ||
| 21 | /** | ||
| 22 | * Default processes output length. | ||
| 23 | * | ||
| 24 | * @var int | ||
| 25 | */ | ||
| 26 | protected $defaultOutputLength = 10240; | ||
| 27 | |||
| 28 | /** | ||
| 29 | * Flush the pool. | ||
| 30 | */ | ||
| 31 | public function flush(): void | ||
| 40 | |||
| 41 | /** | ||
| 42 | * @inheritDoc | ||
| 43 | */ | ||
| 44 | public function add($process, int $outputLength = null): Runnable | ||
| 58 | |||
| 59 | /** | ||
| 60 | * Set default output length of child processes. | ||
| 61 | * | ||
| 62 | * @param int $defaultOutputLength | ||
| 63 | * @since 2.1.0 | ||
| 64 | */ | ||
| 65 | public function defaultOutputLength(int $defaultOutputLength): void | ||
| 69 | } | ||
| 70 |