Lifetime capture of arguments in coroutines is not similar to that in closures

I think both two functions should be valid, but the coroutine version is not:

could you please tell me the reason? Thanks!

It's not supported for now.

1 Like