<locals>.GeneratorzEmulates the following generator (very clumsy):

              def gen(fut):
                  result = yield fut
                  return result * 2
            c