append_or_print

Function append_or_print 

Source
pub async fn append_or_print(
    buf: &mut Vec<String>,
    sender: Option<&Sender<Vec<String>>>,
    print: &bool,
    messages: Vec<String>,
)
Expand description

Auxiliary function to print or insert provided messages to given buffer reference. If a channel sender is provided, the messages are send to that instead.