Skip to content

TransactionalState<TState>.PerformUpdate(Func<TState, TResult>)

PerformUpdate(Func<TState, TResult>)

View source
public Task<TResult> PerformUpdate<TResult>(Func<TState, TResult> updateAction)
Performs an update operation and returns the result.

Parameters

updateActionFunc<TState, TResult>
A function that can read and update the state, and return a result