Find a battle-tested library for the problem you're solving right now.

Cobalt

Coroutines. Basic Algorithms & Types

C++ 20