4 ms·
The call to new can't really be avoided with this style of coroutine. You have to put the state somewhere. I'll agree there's some ugliness, but it's way nicer
by nitwit005 5y ago
The call to new can't really be avoided with this style of coroutine. You have to put the state somewhere.
I'll agree there's some ugliness, but it's way nicer than trying to do something without compiler support. I looked into coroutine libraries previously, and I just gave up on them as being too much of a hack.