/// Removes a value by a type in the [State].
Removes a value by a type in the [State].
Removes a value by a type in the [ State ] .
pub async fn remove<T: 'static>(&self) -> Option<T> {
        self.0
            .write()
            .await
            .remove(&TypeId::of::<T>())
            .and_then(|value| value.downcast::<T>().ok())
            .map(|value| *value)
    }
pub async fn remove < T : ' static > ( & self ) -> Option < T > { self . 0 . write ( ) . await . remove ( & TypeId :: of :: < T > ( ) ) . and_then ( | value | value . downcast :: < T > ( ) . ok ( ) ) . map ( | value | * value ) }
Removes a value by a type in the [State].
Removes a value by a type in the [ State ] .
&self