AVBHYHOA3PGALA7WNBMKYV3BOPJTBPJEMECMEVM5YFI2KZSNE5OQC
use tokio::prelude::future;
pub fn xmpp_process<F>(signal: F) -> impl future::Future<Item = (), Error = tokio::io::Error>
where
F: future::Future<Item = ()>,
{
signal.map_err(|_| tokio::io::Error::new(tokio::io::ErrorKind::Other, "Wrong shutdown signal"))
}