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