Add accumulate

As far as I remember we came to the conclusion that one cannot re-yield things from coroutines. However, I think it will be useful to store them for later access.