V0.7.3.a Arroyo toad
Modified success paramter to accept async functions
This commit is contained in:
@@ -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] {
|
||||
|
||||
Reference in New Issue
Block a user