'a
in spawn_blocking
#6562
Unanswered
xuxiaocheng0201
asked this question in
Q&A
Replies: 2 comments 3 replies
-
You might use |
Beta Was this translation helpful? Give feedback.
2 replies
-
@Darksonn Oh that's bad. Is there any plan to support this situation? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In many cases, the task is not
'static
, but the params is'a
, so I have to clone the param to make the task'static
.For example:
Is there any way to avoid clone the
content
?I joined the future immediately so I think the task is not necessary to be
'static
.For some reasons, I don't want to use
Arc
, because thecontent
may be zero-copied from other vec.Beta Was this translation helpful? Give feedback.
All reactions