Example using boost co-routines