HH\Asio\result

Get result of an already finished Awaitable

Description

namespace HH\Asio;

function result<T>(
  Awaitable<T> $awaitable,
): T;

Throws an InvalidOperationException if the Awaitable is not finished.

Parameters