Page MenuHomec4science

ImmediateFuture.php
No OneTemporary

File Metadata

Created
Thu, Nov 21, 19:42

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