Arama Sonuçları: "#AsyncRust"

9 sonuç
Joaco
Joaco@joaquin_caro·
🚀 Rust 1.85.0 introduces async closures 🎉 You can now write async || {} to capture values and return futures, just like an async fn but for closures. Plus, three new traits: AsyncFn, AsyncFnMut, and AsyncFnOnce. More power for concurrency in Rust! ⚡🦀 #RustLang #AsyncRust
English
0
2
3
127
Rohit Sachdeva
Rohit Sachdeva@_r_sachdeva·
An async function, when called, returns a Future because the Future is return type. This is just returning its return type like any regular function. The only change is Future wraps the declared return type in async function, to make the full return. #asyncrust
English
0
0
0
72
Elichai Turkel
Elichai Turkel@Elichai2·
On the other hand, this is the same thing but with the "worst executor" all the executor's code was optimized out, the async machinery was optimized out and we are left with a single move instruction which is precisely what the future was doing #rustlang #asyncrust @rustasync
Elichai Turkel tweet media
English
1
1
5
288