pub fn write_bytes(&self, data: Vec<u8>) {
        let task = FileWorkerTask::WriteBytes(data);
        self.task_sender.send(task)
            .unwrap_or_else(|err| unreachable!(err)); // unreachable because channel receiver will drop only after out of thread and thread can't stop while FileWorkerTask::Stop is not received
    }
/// Write data to the file in the background thread.
Write data to the file in the background thread.
Write data to the file in the background thread .
pub fn write_bytes(&self, data: Vec<u8>) {
        let task = FileWorkerTask::WriteBytes(data);
        self.task_sender.send(task)
            .unwrap_or_else(|err| unreachable!(err)); // unreachable because channel receiver will drop only after out of thread and thread can't stop while FileWorkerTask::Stop is not received
    }
pub fn write_bytes ( & self , data : Vec < u8 > ) { let task = FileWorkerTask :: WriteBytes ( data ) ; self . task_sender . send ( task ) . unwrap_or_else ( | err | unreachable ! ( err ) ) ; // unreachable because channel receiver will drop only after out of thread and thread can't stop while FileWorkerTask::Stop is not received }
Write data to the file in the background thread.
Write data to the file in the background thread .
&self
data
Vec<u8>
&self
data
Vec<u8>