write<T> abstract method

T write<T>(
  1. T callback()
)

Start a write transaction on the box.

Transactions provides and atomic view on the box. All read operations inside the transaction will see the same state of the box.

Implementation

T write<T>(T Function() callback);