advance/async/pain-points-and-workarounds #839
Replies: 9 comments 2 replies
-
没有像Rust权威指南中那个活生生的例子,可以运动并解决某问题,我真的不太行 |
Beta Was this translation helpful? Give feedback.
-
场景好全,有些场景真是想不到。👍 |
Beta Was this translation helpful? Give feedback.
-
Trait 翻译成特征, 我半天没反应过来。建议保留 Trait 不翻译更好。 |
Beta Was this translation helpful? Give feedback.
-
好像从1.75版本开始,rust支持在trait中定义异步函数了 |
Beta Was this translation helpful? Give feedback.
-
目前rust版本已支持在特征中使用 async |
Beta Was this translation helpful? Give feedback.
-
trait 中定义 async 方法, 对于 pub trait 建议: |
Beta Was this translation helpful? Give feedback.
-
async fn bar_foo(){ #[tokio::main] 这里使用Box::pin没问题啊? |
Beta Was this translation helpful? Give feedback.
-
诋毁这种,多出点列子,一味的翻译并不好,比如你只翻译了官网,却一句话不提,boxed 似乎不支持return ,可能支持static ,如果支持,这种地方中也许应该放一个带有返回的实例 |
Beta Was this translation helpful? Give feedback.
-
我决定放弃async了,实在看不懂它的深入理解和使用 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
advance/async/pain-points-and-workarounds
https://course.rs/advance/async/pain-points-and-workarounds.html
Beta Was this translation helpful? Give feedback.
All reactions