2 ms·
As far as I can tell there is no parallelism in this code (fyi rust doesn't have a uint32 type), if you want things to run in parallel you need to spawn a task
by leshow 5y ago
As far as I can tell there is no parallelism in this code (fyi rust doesn't have a uint32 type), if you want things to run in parallel you need to spawn a task just as you do with threads. Async gives you concurrency, each formerly blocking thing turns into a yield where a scheduler is free to run some other task, but it doesn't automatically give you parallelism.