Is it possible to spawn futures inside LocalExecutor without using a Rc? #330
Unanswered
DontBreakAlex
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This does not build:
Because that would require having a ref like this:
&'a LocalExecutor<'a>
...Using a Rc isn't very ergonomic either, because you need to have weak refs everywhere in futures so that the executor is dropped correctly when it goes out of scope.
Beta Was this translation helpful? Give feedback.
All reactions