pub async fn task<R>(stdin: R, sender: Sender<Event>) -> Result<()>where R: Read + Unpin + Send + 'static,
Run the data input task