Logo Mibo

Transaction Module

Functions and values

Function or value Description

run f

Full Usage: run f

Parameters:
    f : unit -> 'T

Returns: 'T
Type parameters: 'T

Runs a function as a transaction. Writes inside the transaction are deferred and applied at commit. Nested calls join the running transaction. Reads inside a transaction see the pre-transaction values.

f : unit -> 'T
Returns: 'T
Example

 Transaction.run (fun () ->
     a.Set(1)
     b.Set(2)) |> ignore
val ignore: value: 'T -> unit

Type something to start searching.