mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Add .ConfigureAwait(false) in StreamPipeSink Writer function
This commit is contained in:
parent
b217ca4af0
commit
e0385dcfdb
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ public StreamPipeSink(Func<Stream, CancellationToken, Task> writer)
|
||||||
}
|
}
|
||||||
public StreamPipeSink(Stream destination)
|
public StreamPipeSink(Stream destination)
|
||||||
{
|
{
|
||||||
Writer = (inputStream, cancellationToken) => inputStream.CopyToAsync(destination, BlockSize, cancellationToken);
|
Writer = async (inputStream, cancellationToken) => await inputStream.CopyToAsync(destination, BlockSize, cancellationToken).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task ReadAsync(Stream inputStream, CancellationToken cancellationToken)
|
public Task ReadAsync(Stream inputStream, CancellationToken cancellationToken)
|
||||||
|
|
Loading…
Reference in a new issue