public function isReady()Inherited
Is this future's process complete? Specifically, can this future be resolved without blocking?
bool | If true, the external process is complete and resolving this future will not block. |
public function resolve()Inherited
Resolve a future and return its result, blocking until the result is ready if necessary.
wild | Future result. |
final public function updateFuture()Inherited
wild |
private function startServiceProfiler()Inherited
wild |
private function endServiceProfiler()Inherited
wild |
protected function getServiceProfilerStartParameters()Inherited
wild |
protected function getServiceProfilerResultParameters()Inherited
wild |
public function getReadSockets()Inherited
Retrieve a list of sockets which we can wait to become readable while a future is resolving. If your future has sockets which can be select()ed, return them here (or in getWriteSockets()) to make the resolve loop do a select(). If you do not return sockets in either case, you'll get a busy wait.
list | A list of sockets which we expect to become readable. |
public function getWriteSockets()Inherited
Retrieve a list of sockets which we can wait to become writable while a future is resolving. See getReadSockets().
list | A list of sockets which we expect to become writable. |
public function getDefaultWait()Inherited
Default amount of time to wait on stream select for this future. Normally 1 second is fine, but if the future has a timeout sooner than that it should return the amount of time left before the timeout.
wild |
public function start()Inherited
wild |
final protected function getResult()Inherited
Retrieve the final result of the future.
wild | Final resolution of this future. |
final protected function setResult($result)Inherited
$result |
wild |
final public function hasResult()Inherited
wild |
private function setException($exception)Inherited
$exception |
wild |
private function getException()Inherited
wild |
final public function hasException()Inherited
wild |
final public function setFutureKey($key)Inherited
$key |
wild |
final public function getFutureKey()Inherited
wild |
final public function setRaiseExceptionOnStart($raise)Inherited
$raise |
wild |
final public function getHasFutureStarted()Inherited
wild |
final public function canResolve()Inherited
wild |
private function endFuture()Inherited
wild |
public function __construct($proxied, $source, $scrub)
Future | $proxied |
this | //Implicit.// |
public function setProxiedFuture($proxied)Inherited
Future | $proxied |
wild |
protected function getProxiedFuture()Inherited
wild |
protected function didReceiveResult($result)
$result |
wild |
protected function didReceiveException($exception)Inherited
$exception |
wild |