Query

interface Query<T> : Actor

Query as the base interface for an QueryClient implementations.

Parameters

T

Type of the return value from the query.

Properties

Link copied to clipboard
abstract val command: SendChannel<QueryCommand<T>>

Send Channel to manipulate the state of the query.

Link copied to clipboard
abstract val event: SharedFlow<QueryEvent>

Shared Flow to receive query events.

Link copied to clipboard
abstract val options: QueryOptions

The QueryOptions configured for the query.

Link copied to clipboard
abstract val state: StateFlow<QueryState<T>>

State Flow to receive the current state of the query.

Functions

Link copied to clipboard
abstract fun launchIn(scope: CoroutineScope): Job

Launches the actor.