Common/Output/
ClearOutputChannel.rs1use std::sync::Arc;
6
7use super::OutputChannelManager::OutputChannelManager;
8use crate::{Effect::ActionEffect::ActionEffect, Error::CommonError::CommonError};
9
10pub fn ClearOutputChannel(ChannelIdentifier:String) -> ActionEffect<Arc<dyn OutputChannelManager>, CommonError, ()> {
21 ActionEffect::New(Arc::new(move |Manager:Arc<dyn OutputChannelManager>| {
22 let IdentifierClone = ChannelIdentifier.clone();
23
24 Box::pin(async move { Manager.Clear(IdentifierClone).await })
25 }))
26}