fn truncate_worker(
    timer: Box<dyn TimerTrait>,
    file: File,
    kill_evt: Event
) -> Result<File>