heptagon/examples/async/simple.ept

14 lines
166 B
Text
Raw Normal View History

2020-12-20 19:57:44 +01:00
node f(x : int) returns (y : int)
let
y = 0 fby x;
2020-12-20 19:57:44 +01:00
tel
node main() returns (y : int)
var
x : int;
let
x = 1 + (0 fby x);
y = async f(x) on timer_ms(5);
tel