AsyncFailureCallback<E extends AppException, T> typedef

AsyncFailureCallback<E extends AppException, T> = T Function(E error)

Callback type for failure operations in Result.asyncFold Note: This remains synchronous as error handling typically doesn't need to be async

E is the error type, constrained to AppException T is the return type of the callback

Implementation

typedef AsyncFailureCallback<E extends AppException, T> = T Function(E error);