Skip to content

Why does spawn_blocking use + 'static instead of + 'a? #7098

Answered by Darksonn
OneOfOne asked this question in Q&A
Discussion options

You must be logged in to vote

That does not change behavior of any code that compiles today, but it makes it possible to write new code that is wrong but compiles.

Please see:
https://without.boats/blog/the-scoped-task-trilemma/

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by OneOfOne
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