abstract public function isReady()
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()
Resolve a future and return its result, blocking until the result is ready if necessary.
wild | Future result. |
final public function updateFuture()
wild |
private function startServiceProfiler()
wild |
private function endServiceProfiler()
wild |
protected function getServiceProfilerStartParameters()
wild |
protected function getServiceProfilerResultParameters()
wild |
public function getReadSockets()
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()
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()
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()
wild |
final protected function getResult()
Retrieve the final result of the future.
wild | Final resolution of this future. |
final protected function setResult($result)
$result |
wild |
final public function hasResult()
wild |
private function setException($exception)
$exception |
wild |
private function getException()
wild |
final public function hasException()
wild |
final public function setFutureKey($key)
$key |
wild |
final public function getFutureKey()
wild |
final public function setRaiseExceptionOnStart($raise)
$raise |
wild |
final public function getHasFutureStarted()
wild |
final public function canResolve()
wild |
private function endFuture()
wild |