Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92593685
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
Thu, Nov 21, 19:42
Size
312 B
Mime Type
text/x-php
Expires
Sat, Nov 23, 19:42 (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