Contents

owner(of:)

Gets the device that owns a given entity, if any.

Declaration

@MainActor @preconcurrency func owner(of entity: Entity) -> (any SynchronizationPeerID)?

Parameters

  • entity:

    The entity for which you want the owner.

Return Value

The networked device that owns the entity. The value is nil if the entity isn’t synchronized or is owned locally.

See Also

Managing ownership