disposeAsync method

Future<void> disposeAsync({
  1. bool purgeZeroize = false,
})

Disposes synchronously, then awaits all registered asynchronous cleanup.

Implementation

Future<void> disposeAsync({bool purgeZeroize = false}) {
  dispose(purgeZeroize: purgeZeroize);
  return _cleanupFuture;
}