Skip to content

Commit c2e1d6d

Browse files
zeenixrylev
andauthored
fixup! status-quo story: Alan needs async in traits
Co-authored-by: Ryan Levick <[email protected]>
1 parent 6b0277d commit c2e1d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vision/status_quo/alan_needs_async_in_traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ After Alan finishes adding the new trait, he shows his work off to Barbara and m
4646
* handles lifetimes for you if the returned future is tied to the lifetime of some inputs.
4747
* boxes and pins the futures for you.
4848

49-
which implementer will have to manually handle if they don't use `async_trait`. She decides to not worry Alan with this right now. Alan and Barbara are pretty happy with the results and go on to publish their crate which gets lots of users.
49+
which the implementer will have to manually handle if they don't use `async_trait`. She decides to not worry Alan with this right now. Alan and Barbara are pretty happy with the results and go on to publish their crate which gets lots of users.
5050

5151
Later on, a potential user of the library wants to use their library in a `no_std` context where they will be providing a custom HTTP stack. Alan and Barbara have done a pretty good job of limiting the use of standard library features and think it might be possible to support this use case. However, they quickly run into a show stopper: `async-trait` boxes all of the futures returned from a async trait function. They report this to Alan through an issue.
5252

0 commit comments

Comments
 (0)