Table of Contents

Method Run

Namespace
SodaFlow
Assembly
SodaFlow.dll

Run<T>(Func<T>)

Runs the given function in one transaction.

public static T Run<T>(Func<T> f)

Parameters

f Func<T>

The function to run.

Returns

T

The return value of f.

Type Parameters

T

The type of the value returned.

Remarks

Usually this is not necessary, because each primitive opens its own transaction automatically. It is useful to run more than one reactive operation atomically.