Skip to content

Commit

Permalink
[ISSUE #41]doc: update README.md doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm committed Oct 23, 2023
1 parent f840541 commit e05de86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ pub trait Service<Cx, Request> {
type Error;

/// Process the request and return the response asynchronously.
async fn call<'s, 'cx>(&'s self, cx: &'cx mut Cx, req: Request) -> Result<Self::Response, Self::Error>;
fn call<'s, 'cx>(
&'s self,
cx: &'cx mut Cx,
req: Request,
) -> impl Future<Output = Result<Self::Response, Self::Error>> + Send;
}
```

Expand Down

0 comments on commit e05de86

Please sign in to comment.