Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Iirc I had a situation a while back, in which I used async await with tokio with a non Send or Sync type and it compiled when I didn't use spawn[1] (implying multithreading) but a simple loop with sequential processing.

Only when I wanted to enable parallelism using spawn, I got a compilation error.

[1]: https://docs.rs/tokio/latest/tokio/task/fn.spawn.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: