Skip to content

Conversation

@eholk
Copy link
Owner

@eholk eholk commented Sep 13, 2022

This modifies dtolnay's async_trait macro to return StackFuture instead of Box to make it easier to simulate async traits with StackFuture.

Ideally, this should be re-exported from the stackfuture crate so you can use it like this:

#[stackfuture::async_trait(128)]
trait MyAsyncTrait {
    async fn foo(&self) -> i32;
}

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 this pull request may close these issues.

2 participants