HH\Lib\Keyset\map_async

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

This function is available as Keyset\gen_map() in Facebook's www repository.

Returns a new keyset where the value is the result of calling the given async function on the original values in the given traversable

Description

namespace HH\Lib\Keyset;

function map_async<Tv, Tk as arraykey>(
  Traversable<Tv> $traversable,
  (function(Tv):Awaitable<Tk>) $async_func,
): Awaitable<keyset<Tk>>;

Parameters