public async ValueTask DisposeAsync() { foreach (var allocated in _allocated) { await allocated.DisposeAsync(); } _mmap.Dispose(); await _fileStream.DisposeAsync(); await _file.DisposeAsync(); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); _file.DisposeAsync().AsTask().Wait(); }