You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop-docs/engineering-practices/rust.mdx
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,26 +50,26 @@ During migration you may need normal functions which return futures, for their s
50
50
51
51
### Async Traits
52
52
53
-
In **traits**you can not yet use `async fn` ([see this blog post](https://smallcultfollowing.com/babysteps/blog/2019/10/26/async-fn-in-traits-are-hard/)).
54
-
In this case, functions should return `-> Pin<Box<dyn Future<Output = ...> + Send>>`:
53
+
Support for async in **traits**has [landed in Rust](https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html)
0 commit comments