HH\Asio\WrappedResult::__construct

Instantiate a WrappedResult

public function __construct(
  T $result,
);

Normally, you will not instantiate a WrappedResult directly, but rather have one returned back to you on a call to wrap() if the operation succeeded.

Parameters

  • T $result - The result of the Awaitable operation.