ef583813eb
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
20 lines
406 B
C#
20 lines
406 B
C#
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));
|
|
}
|
|
}
|
|
}
|
|
} |