Please, generate my callbacks!

source code:

sample:

streamlined code:

use native generators