StoreLifecycle

ImmutableStoreLifecycle that is also AutoCloseable, which can be closed on demand.

Inheritors

Properties

Link copied to clipboard
abstract val isActive: Boolean

Whether the Store is active (store is started or being started).

Link copied to clipboard
abstract val isStarted: Boolean

Whether the Store has started fully.

Functions

Link copied to clipboard
abstract suspend fun awaitStartup()

Wait while the Store is started. If it is already started, returns immediately.

Link copied to clipboard
abstract suspend fun awaitUntilClosed()

Suspend until the store is closed

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract suspend fun closeAndWait()

Await while the Store is fully closed.