heptagon/examples/async/simple.ept

13 lines
160 B
Text

node f(x : int) returns (y : int)
let
y = x;
tel
node main() returns (y : int)
var
x : int;
let
x = 1 + (0 fby x);
y = async f(x) on timer_ms(5);
tel