Polling futures turns out to be a smart thing to do. Fixes #12

This commit is contained in:
Gregor Reitzenstein
2021-02-08 18:28:27 +00:00
parent 9c87c192fa
commit 14eb9b048a
4 changed files with 50 additions and 14 deletions

View File

@ -1,8 +1,10 @@
{ actor_connections = [{ _1 = "Testmachine", _2 = "Actor" }]
{ actor_connections = [] : List { _1 : Text, _2 : Text }
-- { actor_connections = [{ _1 = "Testmachine", _2 = "Actor" }]
, actors =
{ Actor = { module = "Shelly", params = {=} }
}
, init_connections = [{ _1 = "Initiator", _2 = "Testmachine" }]
, init_connections = [] : List { _1 : Text, _2 : Text }
--, init_connections = [{ _1 = "Initiator", _2 = "Testmachine" }]
, initiators =
{ Initiator = { module = "Dummy", params = {=} }
}
@ -18,6 +20,23 @@
, name = "Testmachine"
, read = "lab.test.read"
, write = "lab.test.write"
} }
},
Another =
{ description = Some "Another test machine"
, disclose = "lab.test.read"
, manage = "lab.test.admin"
, name = "Another"
, read = "lab.test.read"
, write = "lab.test.write"
},
Yetmore =
{ description = Some "Yet more test machines"
, disclose = "lab.test.read"
, manage = "lab.test.admin"
, name = "Yetmore"
, read = "lab.test.read"
, write = "lab.test.write"
}
}
, mqtt_url = "tcp://localhost:1883"
}