HH\Asio\result

Get result of an already finished Awaitable

namespace HH\Asio;

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

Throws an InvalidOperationException if the Awaitable is not finished.

Parameters

Returns

  • T