Yes. That's common problem to both of them. They don't protect against reentrancy properly. It seems to be Ok for sync generate in fail with SO in this case. However, asyncGenerate is well, async, it is supposed to wait on
next
properly even if this
next
depends on itself