From e0921f4ca4a762e4d6f4790c4ba3e6dbf5537862 Mon Sep 17 00:00:00 2001 From: Christian Risi <75698846+CnF-Gris@users.noreply.github.com> Date: Sun, 15 Dec 2024 22:01:15 +0000 Subject: [PATCH] V0.7.3.a Arroyo toad Modified success paramter to accept async functions --- Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift b/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift index c3c4b3d..b1476bd 100644 --- a/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift +++ b/Sources/IoT-Simulator-Core/IoT_Simulator_Core.swift @@ -17,7 +17,7 @@ public actor IoTSimulatorCore { public static func addDevice( location: String, device: EdgeDeviceP, - success: sending @escaping (_ msg: Data) throws -> Void, + success: sending @escaping (_ msg: Data) async throws -> Void, failure: sending @escaping () -> Void ) throws { if let environment = IoTSimulatorCore.enviroments[location] {