The expression return $this->forked ?? ...o\Process\Piping($this) returns the type Carno\Process\Piping which is incompatible with the documented return type Carno\Process\Program.
Loading history...
44
}
45
46
/**
47
* @param Piping $piping
48
* @return static
49
*/
50
final public function forked(Piping $piping) : self
51
{
52
$this->forking($piping);
53
return $this;
54
}
55
56
/**
57
* triggered when process forking (still in parent process)
58
* @param Piping $piping
59
*/
60
abstract protected function forking(Piping $piping) : void;
61
62
/**
63
* triggered when process started (in child process)
64
*/
65
abstract protected function starting() : void;
66
67
/**
68
* triggered when process exiting (in child process)
69
* @param Promised $wait
70
*/
71
abstract protected function stopping(Promised $wait) : void;