HH\Asio\join

Wait for a given Awaitable to finish and return its result.

Description

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

Wait for a given Awaitable to finish and return its result.

Launches a new instance of scheduler to drive asynchronous execution until the provided Awaitable is finished.

Parameters

  • Awaitable<T> $awaitable