Function: lwwSet()
このコンテンツはまだ日本語訳がありません。
Function: lwwSet()
Section titled “Function: lwwSet()”lwwSet<
T>(clientID,value,ts,current?):LwwRegister<T>
Defined in: core/src/schema/crdt.ts:140
Set a new value. Callers supply their own timestamp (defaulted to
Date.now() at the call site — plasma doesn’t reach for it to keep
the primitive pure and easily mockable). Ties on ts resolve by
clientID lexicographic order, which is a stable tiebreak.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”clientID
Section titled “clientID”string
T
number
current?
Section titled “current?”LwwRegister<T> | null
Returns
Section titled “Returns”LwwRegister<T>