QueryRef

interface QueryRef<T> : Actor

A reference to an Query for QueryKey.

Parameters

T

Type of data to retrieve.

Properties

Link copied to clipboard
abstract val id: QueryId<T>

A unique identifier used for managing QueryKey.

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 suspend fun invalidate()

Invalidates the Query.

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

Launches the actor.

Link copied to clipboard
abstract suspend fun resume()

Resumes the Query.