Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL ServerAPIRequestAdapter.swift   Interaktion und
PortierbarkeitJAVA

 

import CocoaLumberjackSwift
import Foundation

/// Default implementation that wraps the Objective-C `ServerAPIRequest` class.
///
/// This adapter bridges the callback-based `ServerAPIRequest` API to Swift's
/// async/await concurrency model.
public final class ServerAPIRequestAdapter: ServerAPIRequestProtocol {
    
    public init() { }
    
    public func postJSONToWorkAPI(path: String, data: [String: Any]) async throws -> Any? {
        try await withCheckedThrowingContinuation { continuation in
            ServerAPIRequest.postJSON(toWorkAPIPath: path, data: data) { json in
                continuation.resume(returning: json)
            } onError: { error in
                if let error {
                    DDLogError("[ServerAPIRequestAdapter] Error: \(error)")
                    continuation.resume(throwing: error)
                }
                else {
                    continuation.resume(returning: nil)
                }
            }
        }
    }
}

Messung
CHZG
91919391

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.0Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,187,841
#Domains=881,730