getAsync method

Future<T?> getAsync(
  1. int id
)

Like get, but runs the box operation asynchronously in a worker isolate.

If you need to call this multiple times consider using the synchronous variant (e.g. get) and wrap the calls in Store.runInTransactionAsync. This has typically better performance as only a single worker isolate has to be spawned.

Implementation

Future<T?> getAsync(int id) => _store.runAsync(_getAsyncCallback<T>, id);