2016-03-19 19:06:23 +00:00
|
|
|
assertion type beep(counter);
|
|
|
|
|
2016-04-07 07:42:54 +00:00
|
|
|
ground dataspace {
|
2016-03-19 19:06:23 +00:00
|
|
|
console.log('starting ground boot');
|
|
|
|
|
2017-02-16 19:38:56 +00:00
|
|
|
spawn {
|
2016-08-25 12:12:32 +00:00
|
|
|
stop on asserted Syndicate.observe(beep(_)) {
|
|
|
|
field this.counter = 0;
|
|
|
|
react {
|
|
|
|
on start {
|
|
|
|
:: beep(this.counter++);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
2016-08-25 12:12:32 +00:00
|
|
|
on message beep(_) {
|
|
|
|
:: beep(this.counter++);
|
|
|
|
}
|
|
|
|
stop on (this.counter > 10);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-16 19:38:56 +00:00
|
|
|
spawn {
|
2016-08-25 12:12:32 +00:00
|
|
|
on message beep($counter) {
|
|
|
|
console.log("beep!", counter);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|