heptagon/examples/async/simple.ept
Tom Barthe f864d10095
Update async example
The new example is more useful because it involves a memory.
2020-12-22 17:46:50 +01:00

13 lines
166 B
Text

node f(x : int) returns (y : int)
let
y = 0 fby 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