Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92639896
ImmediateFuture.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
Fri, Nov 22, 07:32
Size
312 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 07:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22466174
Attached To
rPHU libphutil
ImmediateFuture.php
View Options
<?php
/**
* Degenerate future which returns an already-existing result without performing
* any computation.
*
* @group futures
*/
final
class
ImmediateFuture
extends
Future
{
public
function
__construct
(
$result
)
{
$this
->
result
=
$result
;
}
public
function
isReady
()
{
return
true
;
}
}
Event Timeline
Log In to Comment