20 lines
406 B
C#
Raw Normal View History

using System.Threading.Tasks;
namespace System.IO
{
partial class Stream : IAsyncDisposable
{
public virtual ValueTask DisposeAsync()
{
try
{
Dispose();
return default;
}
catch (Exception exc)
{
return new ValueTask(Task.FromException(exc));
}
}
}
}