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');
|
|
|
|
|
|
|
|
actor {
|
2016-05-10 22:49:12 +00:00
|
|
|
react until {
|
2016-03-19 19:06:23 +00:00
|
|
|
case asserted Syndicate.observe(beep(_)) {
|
2016-08-07 19:33:09 +00:00
|
|
|
field this.counter = 0;
|
2016-05-10 22:49:12 +00:00
|
|
|
react {
|
|
|
|
do {
|
2016-08-07 19:33:09 +00:00
|
|
|
:: beep(this.counter++);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
|
|
|
on message beep(_) {
|
2016-08-07 19:33:09 +00:00
|
|
|
:: beep(this.counter++);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
|
|
|
} until {
|
2016-08-07 19:33:09 +00:00
|
|
|
case (this.counter > 10);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
actor {
|
2016-05-10 22:49:12 +00:00
|
|
|
react {
|
2016-05-08 15:11:16 +00:00
|
|
|
on message beep($counter) {
|
|
|
|
console.log("beep!", counter);
|
2016-03-19 19:06:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|