Transaction.this

Creates a new transactional data manager.

  1. this()
  2. this(void delegate(Snapshot!T) onCommit, void delegate(Snapshot!T) onSuccess, bool delegate(Snapshot!T, Throwable, size_t) onFailure)
    class Transaction(T)
    final
    this
    (
    void delegate
    (
    Snapshot!T
    )
    onCommit
    ,
    void delegate
    (
    Snapshot!T
    )
    onSuccess
    ,
    bool delegate
    (
    Snapshot!T
    ,
    Throwable
    ,
    size_t
    )
    onFailure
    )
    if (
    is(T == struct) ||
    isScalarType!T
    )

Parameters

onCommit void delegate
(
Snapshot!T
)

The delegate called when committing.

onSuccess void delegate
(
Snapshot!T
)

The delegate called when a commit succeeded.

onFailure bool delegate
(
Snapshot!T
,
Throwable
,
size_t
)

The delegate called when a commit failed.

Meta