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 reads or updates the state and returns a result.

Returns

A task whose result is the value returned by updateFunction.