mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 13:15:02 +00:00
Update to futures 0.3.9 (#7854)
This commit is contained in:
1 parent
467599df13
commit
a4032b1dfb
26 files changed
+121
-121
No files matched your search
@@ -52,7 +52,7 @@ pub fn timestamp_from_now(timestamp: Timestamp) -> Duration {
|
||||
/// If `None`, returns a never-ending `Future`.
|
||||
pub fn deadline_to_future(
|
||||
deadline: Option<Timestamp>,
|
||||
) -> futures::future::MaybeDone<impl futures::Future> {
|
||||
) -> futures::future::MaybeDone<impl futures::Future<Output = ()>> {
|
||||
use futures::future::{self, Either};
|
||||
|
||||
future::maybe_done(match deadline.map(timestamp_from_now) {
|
||||
|
||||
Reference in new issue
Block a user