Add an example of the async keyword

This commit is contained in:
jeltz 2020-12-20 19:57:44 +01:00
parent efd6bebf91
commit 53cc7a739f
Signed by: jeltz
GPG Key ID: 800882B66C0C3326
1 changed files with 13 additions and 0 deletions

13
examples/async/simple.ept Normal file
View File

@ -0,0 +1,13 @@
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