refactor(mobile): IOS replace DispatchQueue + DispatchSemaphore with OperationQueue for image processing (#27471)

refactor: replace DispatchQueue + DispatchSemaphore with OperationQueue for image processing
This commit is contained in:
Luis Nachtigall
2026-04-05 22:11:02 +02:00
committed by GitHub
parent 196307bca5
commit 6fcf651d76
3 changed files with 15 additions and 22 deletions
@@ -73,10 +73,7 @@ class RemoteImageApiImpl: NSObject, RemoteImageApi {
return request.completion(.failure(PigeonError(code: "", message: "No data received", details: nil)))
}
ImageProcessing.queue.async {
ImageProcessing.semaphore.wait()
defer { ImageProcessing.semaphore.signal() }
ImageProcessing.queue.addOperation {
if request.isCancelled {
return request.completion(ImageProcessing.cancelledResult)
}