everybody.
let rt = tokio::runtime::Runtime::new().unwrap();
This code doesn't work when I try to build wasm.
let rt = tokio::runtime::Runtime::new().unwrap();
| ^^^^^^^ could not find `Runtime` in `runtimе
let rt = tokio::runtime::Runtime::new().unwrap();
| ^^^^^^^ private module
Is it possible to use tokio::runtime in wasm or do I need to look for other ways ? Can I use multithreading ?
I tried to start an asynchronous function with rt.block_on, since the current function is not supposed to be asynchronous, it runs in a separate thread.