How to modify the JobQueue
to run under Tokio?
#4022
Replies: 1 comment
-
Finally got onto this. You can see an example using tokio on #4111 :) |
Beta Was this translation helpful? Give feedback.
0 replies
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