mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-07-08 18:16:30 +00:00
Minor changes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user