Skip to content

Tokens

[Source]

A container for serialized CRDT state as a sequence of typed values. Use from to serialize a CRDT, and iterator to read the tokens back.

class ref Tokens

Constructors

create

[Source]

new ref create()
: Tokens ref^

Returns


Public fields

embed array: Array[Any val] ref

[Source]


Public Functions

push

[Source]

fun ref push(
  a: Any val)
: None val

Parameters

Returns


from

[Source]

fun ref from(
  s: _TokensSource ref)
: None val

Parameters

  • s: _TokensSource ref

Returns


iterator

[Source]

fun box iterator()
: TokensIterator ref

Returns