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