lock_write_out

Function lock_write_out 

Source
pub fn lock_write_out<B>(bytes: B)
where B: AsRef<[u8]>,
Expand description

ยงLocks stdout and writes to it

  • For simplicity, any error will be caught and printed out via eprintln!().
  • The function will flush stdout when done.