mfkw
This is a point-in-time snapshot of the API documentation from January 2026. Going forward, we will not be maintaining a public copy of these references, and recommend users to refer to the built-in signature helpers available in the Hack LSP instead for complete and up-to-date information.
Returns an Awaitable of Map of ResultOrExceptionWrapper after a
filtering operation has been applied to each key/value pair in the provided
KeyedTraversable
namespace HH\Asio;
function mfkw<Tk as arraykey, T>(
KeyedTraversable<Tk, T> $inputs,
(function(Tk, T): Awaitable<bool>) $callable,
): Awaitable<Map<Tk, ResultOrExceptionWrapper<T>>>;
This function is similar to mfk(), except the Map in the returned
Awaitable contains values of ResultOrExceptionWrapper instead of raw
values.
This function is similar to Map::filterWithKey(), but the filtering of the
keys and values is done using Awaitables.
This function is called mfkw because we are returning a map, doing a
filtering operation on keys and values, and each value member in the
Map is wrapped by a ResultOrExceptionWrapper.
$callable must return an Awaitable of bool.
The ResultOrExceptionWrappers in the Map of the returned Awaitable
are not available until you await or join the returned Awaitable.
Parameters
KeyedTraversable<Tk,T> $inputs- TheKeyedTraversableof keys and values to filter.(function(Tk, T): Awaitable<bool>) $callable- The callable containing theAwaitableoperation to apply to$inputs.