-
Notifications
You must be signed in to change notification settings - Fork 171
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
Make use of into_future
for requests and messages
#1003
base: main
Are you sure you want to change the base?
Conversation
into_future
for Client
and Context
into_future
for requests and messages
f419f65
to
8c109bc
Compare
8c109bc
to
21e6620
Compare
21e6620
to
06e8c7d
Compare
06e8c7d
to
3d613b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly test changes requests.
8e0663b
to
d7dbf6d
Compare
d7dbf6d
to
78243d1
Compare
@@ -1268,6 +1195,106 @@ impl Publish { | |||
} | |||
} | |||
|
|||
impl IntoFuture for Publish { | |||
type Output = Result<PublishAckFuture, PublishError>; | |||
type IntoFuture = Pin<Box<dyn Future<Output = Result<PublishAckFuture, PublishError>> + Send>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use BoxFuture
from futures
here?
|
||
impl IntoFuture for Publish { | ||
type Output = Result<(), PublishError>; | ||
type IntoFuture = Pin<Box<dyn Future<Output = Result<(), PublishError>> + Send>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also BoxFuture
here
2498525
to
285222f
Compare
Co-authored-by: Casper Beyer <[email protected]>
Co-authored-by: Casper Beyer <[email protected]>
Co-authored-by: Casper Beyer <[email protected]>
Co-authored-by: Casper Beyer <[email protected]>
285222f
to
bfd34f9
Compare
Supersedes #782