Callback generator

Introduce the callback generator (like yield but much simpler).