<?php

declare (strict_types=1);
namespace GDAVSCOPE\Amp\Process\Internal;

use GDAVSCOPE\Amp\ForbidCloning;
use GDAVSCOPE\Amp\ForbidSerialization;
/** @internal */
final class ProcHolder
{
    use ForbidCloning;
    use ForbidSerialization;
    public function __construct(public readonly ProcessRunner $runner, public readonly ProcessHandle $handle)
    {
    }
    public function __destruct()
    {
        $this->runner->destroy($this->handle);
    }
}
