V0.7.3.a Arroyo toad

Modified success paramter to accept async functions
This commit is contained in:
Christian Risi 2024-12-15 22:01:15 +00:00
parent 52d5cef335
commit e0921f4ca4

View File

@ -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] {