readAsync<T> method

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

Create an asynchronous read transaction.

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

Check out the read method for more information.

Implementation

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