HH\Asio\result

Get result of an already finished Awaitable.

Description

function HH\Asio\result(
  Awaitable<T> $awaitable,
): T

Get result of an already finished Awaitable.

Throws an InvalidOperationException if the Awaitable is not finished.

Parameters

  • Awaitable<T> $awaitable