1/// An [`AsyncResult`] is a handle for the result of a task. 2#[derive(Debug, Clone)] 3pub struct AsyncResult { 4 pub task_id: String, 5} 6 7impl AsyncResult { 8 pub fn new(task_id: &str) -> Self { 9 Self { 10 task_id: task_id.into(), 11 } 12 } 13}