Skip to content

How to use async eval in tokio multi-thread model #155

Answered by khvzak
yongman asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use LocalSet to execute non-Send futures.

And it's not possible to use eval instead of eval_async to execute async functions because only eval_async returns Future.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yongman
Comment options

Answer selected by yongman
Comment options

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