removeAsync method

Future<bool> removeAsync(
  1. int id
)

Like remove, but runs in a worker isolate.

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

Implementation

Future<bool> removeAsync(int id) async =>
    await _store.runAsync(_removeAsyncCallback<T>, id);