php8.5
Home/ Manual/ parallel / future/ parallel\Future::value

parallel\Future::value

PHP function Edit on GitHub ✎

(0.8.0)

Resolution

Description

parallel\Future::value(): mixed

Shall return (and if necessary wait for) return from task

Exceptions

Warning

Shall throw parallel\Future\Error if waiting failed (internal error).

Warning

Shall throw parallel\Future\Error\Killed if parallel\Runtime executing task was killed.

Warning

Shall throw parallel\Future\Error\Cancelled if task was cancelled.

Warning

Shall throw parallel\Future\Error\Foreign if task raised an unrecognized uncaught exception.

Warning

Shall rethrow Throwable uncaught in task

Source: reference/parallel/parallel/future/value.xml · from the official PHP manual (php/doc-en)