Clean the load request
This commit is contained in:
parent
36ec79f353
commit
dcc81a2c08
@ -12,7 +12,7 @@ public extension MVMCoreLoadHandler {
|
|||||||
/// Performs the request.
|
/// Performs the request.
|
||||||
func performRequest(with requestParameters: MVMCoreRequestParameters, delegateObject: DelegateObject?, additionalData: [AnyHashable : Any]?) async throws {
|
func performRequest(with requestParameters: MVMCoreRequestParameters, delegateObject: DelegateObject?, additionalData: [AnyHashable : Any]?) async throws {
|
||||||
// Makes the request and waits for it. TODO: Any way to take errors into account?
|
// Makes the request and waits for it. TODO: Any way to take errors into account?
|
||||||
guard let operation = MVMCoreLoadHandler.sharedGlobal()?.loadRequest(requestParameters, dataForPage: additionalData, delegateObject: delegateObject) else { return }
|
let operation = loadRequest(requestParameters, dataForPage: additionalData, delegateObject: delegateObject)
|
||||||
await withCheckedContinuation { continuation in
|
await withCheckedContinuation { continuation in
|
||||||
operation.completionBlock = {
|
operation.completionBlock = {
|
||||||
continuation.resume()
|
continuation.resume()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user