MemoInterceptorWrapper<T, A> constructor
const
MemoInterceptorWrapper<T, A> ({
- FunctionArgMemo<
T, A> ? onInit, - FunctionValueMemo<
T, A> ? onValue, - FunctionErrorMemo<
T, A> ? onError, - FunctionArgMemo<
T, A> ? onFinish,
It´s a wrapper for a memoized function that allows you to define callbacks for initialization, successful completion, error handling, and finishing.
Implementation
const MemoInterceptorWrapper({
FunctionArgMemo<T, A>? onInit,
FunctionValueMemo<T, A>? onValue,
FunctionErrorMemo<T, A>? onError,
FunctionArgMemo<T, A>? onFinish,
}) : _onInit = onInit,
_onValue = onValue,
_onError = onError,
_onFinish = onFinish;