bee-network 0.2.2

Networking functionality and types for nodes and clients participating in the IOTA protocol built on top of `libp2p`.
Documentation
1
2
3
4
5
6
7
8
9
10
// Copyright 2020-2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use tokio::time::{self, Duration};

use std::future::Future;

pub fn shutdown(secs: u64) -> impl Future + Send + Unpin {
    Box::new(Box::pin(time::sleep(Duration::from_secs(secs))))
}