Commit 15daeaf1 authored by Ray Koopa's avatar Ray Koopa

Fix StreamExtensions.WriteAsync not passing cancellation token for IEnumerables of Byte.

parent ed3d0b54
......@@ -143,7 +143,7 @@ namespace Syroot.BinaryData
CancellationToken cancellationToken = default)
{
foreach (var value in values)
await stream.WriteAsync(value);
await stream.WriteAsync(value, cancellationToken);
}
/// <summary>
......
......@@ -9,12 +9,12 @@
<PackageIconUrl>https://gitlab.com/Syroot/BinaryData/raw/master/res/icon.png</PackageIconUrl>
<PackageLicenseUrl>https://gitlab.com/Syroot/BinaryData/raw/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://gitlab.com/Syroot/BinaryData</PackageProjectUrl>
<PackageReleaseNotes>Move common functionality to BinaryData.Core package.</PackageReleaseNotes>
<PackageReleaseNotes>Fix StreamExtensions.WriteAsync not passing cancellation token for IEnumerables of Byte.</PackageReleaseNotes>
<PackageTags>binary binaryreader binarywriter data io stream</PackageTags>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://gitlab.com/Syroot/BinaryData</RepositoryUrl>
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks>
<VersionPrefix>5.2.0</VersionPrefix>
<VersionPrefix>5.2.1</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Memory" Version="4.5.2" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment