Page MenuHomePhorge

HarbormasterExecFuture.php
No OneTemporary

Size
892 B
Referenced Files
None
Subscribers
None

HarbormasterExecFuture.php

<?php
final class HarbormasterExecFuture
extends Future {
private $future;
private $stdout;
private $stderr;
public function setFuture(ExecFuture $future) {
$this->future = $future;
return $this;
}
public function getFuture() {
return $this->future;
}
public function setLogs(
HarbormasterBuildLog $stdout,
HarbormasterBuildLog $stderr) {
$this->stdout = $stdout;
$this->stderr = $stderr;
return $this;
}
public function isReady() {
$future = $this->getFuture();
$result = $future->isReady();
list($stdout, $stderr) = $future->read();
$future->discardBuffers();
if ($this->stdout) {
$this->stdout->append($stdout);
}
if ($this->stderr) {
$this->stderr->append($stderr);
}
return $result;
}
protected function getResult() {
return $this->getFuture()->getResult();
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, May 29, 11:53 AM (20 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
175198
Default Alt Text
HarbormasterExecFuture.php (892 B)

Event Timeline