Can I start two async runtimes in two separate std thread? #6848
-
Hi, I want to create two runtimes in a command line, let's say A and B. A is for working for IO (include keyboard/mouse events through crossterm EventStream) and some background jobs. B is for V8 javascript engine, because V8 is designed to run in a single thread, the thread models seems not compatible with rust async. But some javascript language features such as Is that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you can create as many runtimes as you want via the |
Beta Was this translation helpful? Give feedback.
Yes, you can create as many runtimes as you want via the
tokio::runtime::Builder
builder.