Minor changes

This commit is contained in:
Adam Hathcock
2026-06-01 13:41:17 +01:00
parent c83ab22098
commit 07319f61bf
2 changed files with 2 additions and 3 deletions

View File

@@ -63,9 +63,9 @@ internal sealed class RarCryptoWrapper : Stream
int offset,
int count,
CancellationToken cancellationToken
) => ReadAndDecryptAsync(buffer, offset, count, cancellationToken);
) => ReadAndDecryptAsync(buffer, offset, count, cancellationToken).AsTask();
private async Task<int> ReadAndDecryptAsync(
private async ValueTask<int> ReadAndDecryptAsync(
byte[] buffer,
int offset,
int count,

View File

@@ -20,7 +20,6 @@ public static class EnumerableExtensions
{
public static async IAsyncEnumerable<T> ToAsyncEnumerable<T>(this IEnumerable<T> source)
{
await Task.Yield();
foreach (var item in source)
{
yield return item;