Remove debug code

This commit is contained in:
Scott Pfeil 2023-08-28 18:44:00 -04:00
parent 99da8d56d5
commit 66693289ed
2 changed files with 1 additions and 11 deletions

View File

@ -274,11 +274,6 @@
return body;
}
- (nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))modifyRequestFinished:(nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))requestFinished {
return requestFinished;
}
/// MAKE SWIFTY
- (void)sendRequest:(nonnull MVMCoreRequestParameters *)requestParameters locationForError:(nonnull NSString *)locationForError requestFinished:(nullable void (^)(id _Nullable jsonObject, MVMCoreErrorObject *_Nullable error))requestFinished {
[self transformToRequestWithParameters:requestParameters closure:^(NSURLRequest * _Nullable request, MVMCoreErrorObject * _Nullable error) {
if (error) {

View File

@ -34,26 +34,21 @@ public extension MVMCoreActionUtility {
// Task for operation.
group.addTask {
try Task.checkCancellation()
let id = try await operation()
print("sss 1")
return id
return try await operation()
}
// Task for time out.
group.addTask {
try Task.checkCancellation()
try await Task.sleep(nanoseconds: UInt64(timeout) * NSEC_PER_SEC)
print("sss 2")
throw MVMCoreActionUtilityError.timeOut
}
do {
guard let result = try await group.next() else {
print("sss no task")
continuation.resume(throwing: MVMCoreActionUtilityError.noTasks)
return
}
print("sss next \(String(describing: result))")
group.cancelAll()
continuation.resume(returning: result)
} catch {