ImmutableStoreLifecycle

A lifecycle of a Store. This handle allows syncing operations with the events of the store's startup and shutdown.

This is also returned from Store.start

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