HH\Lib\Keyset\filter_async

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

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

Returns a new keyset containing only the values for which the given async predicate returns true

Description

namespace HH\Lib\Keyset;

function filter_async<Tv as arraykey>(
  Container<Tv> $traversable,
  (function(Tv):Awaitable<bool>) $value_predicate,
): Awaitable<keyset<Tv>>;

For non-async predicates, see Keyset\filter().

Parameters