How to modify the JobQueue
to run under Tokio?
#4022
Unanswered
ivansanchez-oss
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
-
Hi, I'm want to replicate the example shown in futures.rs but with two differences, the first is using tokio and the second is that the main program is already under the asynchronous runtime with
#[tokio::main]
.I understand that somehow I have to use an executor but I don't see anything similar to
smoll::LocalExecutor
in tokio, any advice to make this example work? I thought tokio::task::LocalSet would be the solution but I have no way to callawait
inside ofrun_jobs
.Beta Was this translation helpful? Give feedback.
All reactions