asAsync method

AsyncDisposable asAsync()

Implementation

AsyncDisposable asAsync() {
  return AsyncCallbackDisposable(() async => dispose());
}