This commit is contained in:
Adam Hathcock
2026-01-06 12:49:26 +00:00
parent cf50311b9c
commit 48dbdbfed5

View File

@@ -77,10 +77,7 @@ internal static class Utility
public static void Skip(this Stream source) => source.CopyTo(Stream.Null);
public static Task SkipAsync(
this Stream source,
CancellationToken cancellationToken = default
)
public static Task SkipAsync(this Stream source, CancellationToken cancellationToken = default)
{
cancellationToken.ThrowIfCancellationRequested();
return source.CopyToAsync(Stream.Null);