public async ValueTask DisposeAsync()
        {
            foreach (var allocated in _allocated)
            {
                await allocated.DisposeAsync();
            }
            _mmap.Dispose();
            await _fileStream.DisposeAsync();

            await _file.DisposeAsync();
        }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     _file.DisposeAsync().AsTask().Wait();
 }