6 ms·
Async != concurrency. One of the major wins of Rust is encoding thread safety in the type system with the `Send` and `Sync` traits.
by the_duke 2y ago
Async != concurrency.
One of the major wins of Rust is encoding thread safety in the type system with the `Send` and `Sync` traits.
- bilekas 2y ago> Async != concurrency. Right, but tasks are sharing the same thread which is fine, but when we need to expand on that with them actually working async, i.e non blocking, fire and quasi-forget, its tricky. That's all I'm saying.
- duped 2y agoasync == concurrency, concurrency != parallelism.
- sophacles 2y agoasync == concurrency in the same way square == rectangle - that is it's not an associative '==' since there are plenty of rectangles that are not squares.