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
Currently example 1b has the following actor.
async fn greeter_actor(_: Context<!>) -> Result<(), !> { println!("Hello World"); Ok(()) }
I would like to following to be possible
async fn greeter_actor(_: Context<!>) { // Returns `()`. println!("Hello World"); }
The following implementation doesn't work as it overlaps with our implementation for Future<Output = Result(), E>.
Future<Output = Result(), E>
impl<Fut> Actor for Fut where Fut: Future<Output = ()> { type Error = !; fn try_poll(self: Pin<&mut Self>, waker: &LocalWaker) -> Poll<Result<(), Self::Error>> { self.poll(waker).map(Ok) } }
This requires rust-lang/rfcs#1672.
The text was updated successfully, but these errors were encountered:
Closing this for now, returning a result is fine.
Sorry, something went wrong.
This is now implemented in #372.
Successfully merging a pull request may close this issue.
Currently example 1b has the following actor.
I would like to following to be possible
The following implementation doesn't work as it overlaps with our implementation for
Future<Output = Result(), E>
.This requires rust-lang/rfcs#1672.
The text was updated successfully, but these errors were encountered: