Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3294791
FutureAgent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1006 B
Referenced Files
None
Subscribers
None
FutureAgent.php
View Options
<?php
abstract
class
FutureAgent
extends
Future
{
private
$futures
=
array
(
)
;
final
protected
function
setFutures
(
array
$futures
)
{
$this
->
futures
=
$futures
;
}
final
protected
function
getFutures
(
)
{
return
$this
->
futures
;
}
final
public
function
getReadSockets
(
)
{
$sockets
=
array
(
)
;
foreach
(
$this
->
getFutures
(
)
as
$future
)
{
foreach
(
$future
->
getReadSockets
(
)
as
$read_socket
)
{
$sockets
[
]
=
$read_socket
;
}
}
return
$sockets
;
}
final
public
function
getWriteSockets
(
)
{
$sockets
=
array
(
)
;
foreach
(
$this
->
getFutures
(
)
as
$future
)
{
foreach
(
$future
->
getWriteSockets
(
)
as
$read_socket
)
{
$sockets
[
]
=
$read_socket
;
}
}
return
$sockets
;
}
protected
function
getServiceProfilerStartParameters
(
)
{
// At least today, the agent construct doesn't add anything interesting
// to the trace and the underlying futures always show up in the trace
// themselves.
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Mar 26, 23:01 (4 d, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1113449
Default Alt Text
FutureAgent.php (1006 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment