Skip to main content

device_actor

Function device_actor 

pub fn device_actor(handle: &str, device: &ActorId) -> Vec<u8> ⓘ
Expand description

The actor handle writes a document as from the device whose record writer is device: the handle, which actor_handle reads back, and a part only that device has. Automerge numbers each actor’s changes, so one person writing from two devices under the bare handle would make two different changes with the same number, which no replica can merge.