Mutation

interface Mutation<T> : Actor

Mutation as the base interface for an MutationClient implementations.

Parameters

T

Type of the return value from the mutation.

Properties

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

Send Channel to manipulate the state of the mutation.

Link copied to clipboard
abstract val options: MutationOptions

The MutationOptions configured for the mutation.

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

State Flow to receive the current state of the mutation.

Functions

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

Launches the actor.