HH\Asio\wrap

Wrap an Awaitable into an Awaitable of ResultOrExceptionWrapper

Description

function wrap<Tv>(
  Awaitable<Tv> $awaitable,
): Awaitable<HH\Asio\ResultOrExceptionWrapper<Tv>>

The actual ResultOrExceptionWrapper in the returned Awaitable will only be available after you await or join the returned Awaitable.

Parameters

Return Values