Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93937872
HarbormasterExecFuture.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 2, 16:15
Size
892 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 16:15 (2 d)
Engine
blob
Format
Raw Data
Handle
22658232
Attached To
rPH Phabricator
HarbormasterExecFuture.php
View Options
<?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
();
}
}
Event Timeline
Log In to Comment