Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traits use native async features rather than async_trait #30

Open
ActuallyHappening opened this issue Jun 29, 2024 · 1 comment
Open

Comments

@ActuallyHappening
Copy link

I believe the async traits can be updated to use native syntax
There are caveats, but you can manually specify the Send bound on an explicit associated type.
See: https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html#where-the-gaps-lie

@Vogeltak
Copy link
Collaborator

Thanks for the issue @ActuallyHappening! And sorry for only now getting back to you. Feel free to open up a PR with the changes. We also thought about doing this eventually, but we're currently quite busy, so can't make any promises as to when we might get around to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants