Like transaction, but does not create a new transaction if there is already one in progress.

function transact<T>(fn: () => T): T

Parameters

NameDescription

fn

() => T

The function to run in a transaction.

Returns

T
Prev
reactor
Next
transaction

We use cookies on this website.
Learn more in our Cookie Policy.