             } else {
                 print("此方法在该系统版本无法使用")
             }
+
+        case .alamofireAsync:
+            if #available(iOS 13.0, *) {
+                loadByAlamofireAsync()
+            } else {
+                print("此方法在该系统版本无法使用")
+            }
         }
     }
 

        _ tableView: UITableView,
        cellForRowAt indexPath: IndexPath
    ) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: CellIdentifier, for: indexPath)
        let requestInfo = requestInfos[indexPath.row]
        cell.textLabel?.text = requestInfo.rawValue
        return cell

        }
    }

    @available(iOS 13.0, *)
    private func loadByAlamofireAsync() {
        Task {
            let dataRequest = AF.request(
                urlString,
                method: .get,
                parameters: params,
                encoding: URLEncoding.default
            )
            let dataTask = dataRequest.serializingData()
            guard let data = await dataTask.response.value else { return }
            let string = String(data: data, encoding: .utf8) ?? "get string failed."
            print(string)
        }
    }

}

