Section A, Checkpoint 2, question 4

Sep 7, 2014 at 12:57 PM
Hey!

Going over the coding examples one last time before starting the 'Lost' countdown. I am having some issues parsing this question though.

What is meant by '"aborting" the cyclic chain.'?
Sep 7, 2014 at 8:25 PM
Hi Ashana

I altered the code as below. "abortion" can be done by conditionally executing the async in t1. The "abort" that we are going to introduce as a statement in the language is a bit different, it aborts a sent message, "abortion" of the chain in this exercise is just about not continuing it.

Hope this helps.

Task t1(int i) {
#>printf("sec %d\n", i);
... your code here
async after 1s t1(++i);
}

Reset {
async after 1s t1(1); 
}