canRetryCourseISchool<T> function

bool canRetryCourseISchool<T>(
  1. AsyncValue<T> refresh,
  2. AsyncValue<void> availability
)

Retry is safe only after both halves of the current attempt have settled.

Implementation

bool canRetryCourseISchool<T>(
  AsyncValue<T> refresh,
  AsyncValue<void> availability,
) => refresh.hasError && !refresh.isLoading && !availability.isLoading;