Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12656065
ImmediateFuture.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
293 B
Referenced Files
None
Subscribers
None
ImmediateFuture.php
View Options
<?php
/**
* Degenerate future which returns an already-existing result without performing
* any computation.
*/
final
class
ImmediateFuture
extends
Future
{
public
function
__construct
(
$result
)
{
$this
->
setResult
(
$result
);
}
public
function
isReady
()
{
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:09 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1046755
Default Alt Text
ImmediateFuture.php (293 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment