Closed sdroege closed 4 years ago
It requires writing
let conn = connector.connect(...)?.await?;
i.e. two question marks around the `await.
It might be nicer to always return a future, and in case of failure it would simply be a future::ready(the_error). I.e. immediately resolve to the error when polling.
future::ready(the_error)
I agree. I marked this issue as a good first issue.
If you agree with the idea I can prepare a PR :)
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
It requires writing
i.e. two question marks around the `await.
It might be nicer to always return a future, and in case of failure it would simply be a
future::ready(the_error)
. I.e. immediately resolve to the error when polling.