Skip to main content

upgrade_weak

Function upgrade_weak 

Source
pub fn upgrade_weak<T>(weak: &Weak<T>) -> Option<Arc<T>>
Expand description

Helper function to upgrade a Weak to Arc Returns None if the Arc has been dropped Note: This returns an owned Arc, not a reference, so it cannot be used in keypaths directly