pub fn with_owner<S, F, R>(owner: Owner<S>, f: F) -> Rwhere
S: AnyStorage,
F: FnOnce() -> R,
Expand description
Run a closure with the given owner.
This will override the default owner for the current component.
pub fn with_owner<S, F, R>(owner: Owner<S>, f: F) -> Rwhere
S: AnyStorage,
F: FnOnce() -> R,
Run a closure with the given owner.
This will override the default owner for the current component.