HH\Lib\Tuple\from_async

This API is part of the Hack Standard Library, not HHVM itself.
Facebook Engineer?

This function is available as Tuple\gen() in Facebook's www repository.

Given (Awaitable<T1>, Awaitable<T2> ....), return Awaitable<(T1, T2)>

Description

namespace HH\Lib\Tuple;

function from_async(
  ?Awaitable<mixed> ...$args,
): Awaitable<mixed>;

?Awaitable<T1> is also supported.

The function signature here is inaccurate as it can not be correctly expressed in Hack; this function is special-cased in the typechecker.

Parameters

  • ?Awaitable<mixed> ...$args