3 ms·
Yes, if you use a scheduler that doesn't move work between threads, it will not require the task to be Send, and the example code would compile. Rust can use t
by bkolobara 1y ago
Yes, if you use a scheduler that doesn't move work between threads, it will not require the task to be Send, and the example code would compile.
Rust can use that type information and lifetimes to figure out when it's safe and when not.