We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The idea here is to make a macro similar to the #[async_trait] one from the async trait crate. Using it would look something like this:
#[async_trait]
#[stackfuture::async_trait(4096)] trait Foo { async fn bar(&self) -> i32; }
The macro would then expand to something like (along with whatever lifetime annotations are needed:
trait Foo { fn bar(&self) -> StackFuture<i32, { 4096 }>`; }
We'd do a similar thing for impls as well.
The text was updated successfully, but these errors were encountered:
I forked async_trait and make a prototype of this here: eholk/stackfuture-async-trait#1
Sorry, something went wrong.
No branches or pull requests
The idea here is to make a macro similar to the
#[async_trait]
one from the async trait crate. Using it would look something like this:The macro would then expand to something like (along with whatever lifetime annotations are needed:
We'd do a similar thing for impls as well.
The text was updated successfully, but these errors were encountered: