Memoizes the Promise returned by an asynchronous callback.
Note that the callback is invoked at most once. Arguments supplied to subsequent calls are ignored because the Promise from the first invocation is always returned.
The type of the function arguments.
The type of the Promise when resolved.
The function to memoize.
A callback with the Promise memoized. Multiple calls of this function should always point to the same Promise.
Memoizes the Promise returned by an asynchronous callback.
Note that the callback is invoked at most once. Arguments supplied to subsequent calls are ignored because the Promise from the first invocation is always returned.