transform generator, generatorFunction, promise and other yieldables back to thunk