Module state

Source

Structsยง

AtomicState ๐Ÿ”’
The state stored in an atomic integer.
StateSnapshot ๐Ÿ”’
Snapshot of the state. The first bit is used as the CLOSED bit. The remaining bits are used as the version.
Version ๐Ÿ”’
The version part of the state. The lowest bit is always zero.

Constantsยง

CLOSED_BIT ๐Ÿ”’
STEP_SIZE ๐Ÿ”’