export function* goGenerator( fn: () => | void | Generator ): Generator { const generator = fn() if (generator) { yield* generator } }