The Rust Programming Language Forum
How to express that the Future returned by a closure lives only as long as its argument?
help
vague
February 28, 2023, 4:13am
2
Solution for this post
And also see other posts:
Asynchronous wrapper function taking a reference
Lifetime bounds to use for Future that isn't supposed to outlive calling scope
show post in topic
Related Topics
Topic
Replies
Views
Activity
Can't express lifetime for closure arguments (needed for async)
help
16
1995
May 15, 2022
Reference parameter to async fn does not live long enough
help
5
1941
December 28, 2021
Async Closure that References Arguments
help
6
2130
June 26, 2022
Lifetime may not live long enough in async closure?
help
5
772
September 24, 2023
Returning this value requires that `'1` must outlive `'2`
help
10
11137
February 26, 2021