Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93204911
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
Wed, Nov 27, 00:27
Size
892 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 00:27 (2 d)
Engine
blob
Format
Raw Data
Handle
22593496
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