final IntChannel lastChannel = a;
Fiber<Integer> manager = new Fiber<Integer>() {
@Override
protected Integer run() throws InterruptedException, SuspendExecution {
lastChannel.send(1); // start things off
int msg = 0;
try {
for (int i = 0; i < M; i++) {
msg = managerChannel.receiveInt();