Page MenuHomec4science

ImmediateFuture.php
No OneTemporary

File Metadata

Created
Fri, Nov 22, 07:32

ImmediateFuture.php

<?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