finishAsyncWithResponseAF method

void finishAsyncWithResponseAF(
  1. AFFinishQuerySuccessContext<TResponse> context
)

Called internally by the framework to do pre and post processing before finishAsyncWithResponse

Implementation

void finishAsyncWithResponseAF(AFFinishQuerySuccessContext<TResponse> context) {
  finishAsyncWithResponse(context);
  final onSuccessD = onSuccess;
  final lastS = lastStart;
  if(lastS != null) {
    final elapsed = currentMillis() - lastS;
    AFibD.logQueryAF?.d("Query $this completed in ${elapsed}ms");
  }


  // finishAsyncWithResponse might have updated the state.
  if(onSuccessD != null) {
    onSuccessD(context);
  }
  AFibF.g.onQuerySuccess(this, context);
}