TinyBase logoTinyBase

Status

The Status enum is used to indicate whether a Persister is idle, or loading or saving data.

{
  Idle: 0;
  Loading: 1;
  Saving: 2;
}
ValueDescription
Idle0

Indicates that the Persister is neither loading or saving data.

Loading1

Indicates that the Persister is loading data.

Saving2

Indicates that the Persister is saving data.

The enum is intended to be used to understand the status of the Persister in conjunction with the getStatus and addStatusListener methods.

Note that a Persister cannot be loading and saving data at the same time.

Since

v5.3.0