From 41a80cde6aca2756133a25b7fc3e8c11d8f27a3e Mon Sep 17 00:00:00 2001 From: WindowsMEMZ Date: Sat, 15 Jun 2024 16:06:48 +0800 Subject: [PATCH] Updated for Swift6 --- Sources/DarockKit/DarockKit.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/DarockKit/DarockKit.swift b/Sources/DarockKit/DarockKit.swift index 869fdf8..2b728a6 100644 --- a/Sources/DarockKit/DarockKit.swift +++ b/Sources/DarockKit/DarockKit.swift @@ -6,7 +6,7 @@ import SwiftyJSON public class DarockKit { //MARK: Network public class Network { - public static let shared = Network() + @MainActor public static let shared = Network() @discardableResult open func request(_ convertible: URLConvertible, method: HTTPMethod = .get, parameters: Parameters? = nil, encoding: ParameterEncoding = URLEncoding.default, headers: HTTPHeaders? = nil, interceptor: RequestInterceptor? = nil, requestModifier: Session.RequestModifier? = nil) -> DataRequest {