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

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.