Function with_owner

Source
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.