instanceNetworkOwnerUtil
An utility module for working with instance network ownership.
Functions
safeSetInstanceNetworkOwner
Sets the network owner of instance
to networkOwner
safely.
Safe to call
This method should be preferred over directly setting the network owner of instance
via SetNetworkOwner, as
it won't error in cases where the network ownership API cannot be used on instance
.
safeInstanceNetworkOwner
Returns the network owner of instance
safely.
Safe to call
This method should be preferred over directly getting the network owner of instance
via GetNetworkOwner, as
it will safely return nil
(instead of erroring) in cases where the network ownership API cannot be used on instance
!