Add an example of the async keyword
This commit is contained in:
parent
efd6bebf91
commit
53cc7a739f
1 changed files with 13 additions and 0 deletions
13
examples/async/simple.ept
Normal file
13
examples/async/simple.ept
Normal 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
|
Loading…
Reference in a new issue