AccessReplicationStateUtils
Reading an AccessReplicationState out of what actually arrived, and asking the one question the combine rules turn on.
Functions
fromEntry
AccessReplicationStateUtils.fromEntry(entry: {value: boolean?,abstained: boolean?}?) → stringThe state a replicated entry represents.
No entry at all is NOT_YET_ARRIVED; an entry whose value is nil is the server saying it could not
answer. Those are different, and telling them apart is the entire reason entries are boxed rather
than stored as bare booleans.
hasAnswer
AccessReplicationStateUtils.hasAnswer(state: string) → boolean
Whether the server has said something that may override a local answer. False for both
NOT_YET_ARRIVED and ABSTAINED -- silence and "I cannot answer either" both leave the local answer
standing.
isReplicationState
AccessReplicationStateUtils.isReplicationState(value: any) → boolean