writeAsync<T> method

Future<T> writeAsync<T>(
  1. T callback(
    1. Isar isar
    ), {
  2. String? debugName,
})

Create an asynchronous read-write transaction.

The code inside the callback will be executed in a separate isolate.

Check out the write method for more information.

Implementation

Future<T> writeAsync<T>(
  T Function(Isar isar) callback, {
  String? debugName,
}) =>
    writeAsyncWith(null, (isar, _) => callback(isar), debugName: debugName);