pub fn new(id: TaskId, registration: &TaskRegistration, metadata: T) -> Self {
        Self {
            id,
            metadata: Arc::new(metadata),
            state: Arc::clone(&registration.state),
        }
    }
/// Creates a new task tracker from the provided registration
Creates a new task tracker from the provided registration
Creates a new task tracker from the provided registration
pub fn new(id: TaskId, registration: &TaskRegistration, metadata: T) -> Self {
        Self {
            id,
            metadata: Arc::new(metadata),
            state: Arc::clone(&registration.state),
        }
    }
pub fn new ( id : TaskId , registration : & TaskRegistration , metadata : T ) -> Self { Self { id , metadata : Arc :: new ( metadata ) , state : Arc :: clone ( & registration . state ) , } }
Creates a new task tracker from the provided registration
Creates a new task tracker from the provided registration
id
TaskId
registration
&TaskRegistration
metadata
T
id
TaskId
registration
&TaskRegistration
metadata
T