HH\Lib\Vec\filter_async

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

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

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

Description

namespace HH\Lib\Vec;

function filter_async<Tv>(
  Container<Tv> $container,
  (function(Tv):Awaitable<bool>) $value_predicate,
): Awaitable<vec<Tv>>;

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

Parameters