giveOwnership(of:toPeer:)
Transfers ownership of the given entity to the named network device.
Declaration
@discardableResult @MainActor @preconcurrency func giveOwnership(of entity: Entity, toPeer: any SynchronizationPeerID) -> BoolParameters
- entity:
The entity whose ownership is transferred.
- toPeer:
The networked device receiving ownership.
Return Value
A Boolean that’s true if the ownership transfer succeeds.