Skip to content

Lifetime issues when calling async function from request in extractor #2182

Answered by robjtede
shotor asked this question in Q&A
Discussion options

You must be logged in to vote

HttpRequest is cheap to clone and will give you the 'static lifetime needed to use it (or it's parts) in the async block.

Your approach looks fine.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@robjtede
Comment options

@shotor
Comment options

@robjtede
Comment options

@shotor
Comment options

@robjtede
Comment options

Answer selected by shotor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants