notifyThatHasBeenReceivedServerResponse method
Implementation
void notifyThatHasBeenReceivedServerResponse(InternalAsklessResponseEntity response) {
// _lockPendingRequestsList.synchronized(() async {
final req = _pendingRequestsList.firstWhereOrNull((p) => p.data.clientRequestId == response.clientRequestId,);
if (req != null) {
logger("${req.data.getRoute() ?? ''}: response received!: ${response.success} ${response.error?.code}");
req.onResponse(response);
_pendingRequestsList.remove(req);
} else {
logger(response.clientRequestId.toString());
logger("Response received, but did nothing, probably because the request timed out before. clientRequestId: ${response.clientRequestId}", level: Level.debug);
}
// });
}