Memorizes the specified promise and converts it to a synchronous promise. It means that after the first resolution, the promised result will be cached, and the method returns the synchronous version of a promise.
memoize(nextTick());memoize('core/url/concat', () => import('core/url/concat'));
promise or a promise factory to cache, or a key to cache the promise
promise or a promise factory to cache (if the first argument is a key)
Memorizes the specified promise and converts it to a synchronous promise. It means that after the first resolution, the promised result will be cached, and the method returns the synchronous version of a promise.