Mutation

interface Mutation<T> : Actor

Mutation as the base interface for an MutationClient implementations.

Parameters

T

Type of the return value from the mutation.

Inheritors

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 state: StateFlow<MutationState<T>>

State Flow to receive the current state of the mutation.

Functions

Link copied to clipboard
abstract fun attach(iid: InstanceId)

Attaches an instance to the actor.

Link copied to clipboard
abstract fun detach(iid: InstanceId)

Detaches an instance from the actor.

Link copied to clipboard

Returns whether the actor has attached instances.