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(
|
public static func addDevice(
|
||||||
location: String,
|
location: String,
|
||||||
device: EdgeDeviceP,
|
device: EdgeDeviceP,
|
||||||
success: sending @escaping (_ msg: Data) throws -> Void,
|
success: sending @escaping (_ msg: Data) async throws -> Void,
|
||||||
failure: sending @escaping () -> Void
|
failure: sending @escaping () -> Void
|
||||||
) throws {
|
) throws {
|
||||||
if let environment = IoTSimulatorCore.enviroments[location] {
|
if let environment = IoTSimulatorCore.enviroments[location] {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user