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

Framed does not implement FusedFuture #41

Open
qbradley opened this issue Nov 21, 2024 · 0 comments · May be fixed by #42
Open

Framed does not implement FusedFuture #41

qbradley opened this issue Nov 21, 2024 · 0 comments · May be fixed by #42

Comments

@qbradley
Copy link

A function that returns a FusedFuture is not able to be wrapped with Framed.

I would like the following to compile:

use futures::{future::FusedFuture, FutureExt};
fn fused_future() -> impl FusedFuture<Output = ()> {
    async_backtrace::location!().frame(ready().fuse())
}
async fn ready() {}
@qbradley qbradley linked a pull request Nov 21, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant