Skip to content

CharIdAllocator

Keep one allocator per author session, even when restoring or replacing snapshots.

new CharIdAllocator(actor): CharIdAllocator

string

CharIdAllocator

readonly actor: string

generateAfter(before, count?): CharId

CharId | "start"

number

CharId


reserve(start, count): void

Reserve identities from a restored author log before allocating more characters.

CharId

number

void