We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22e1c06 commit e0d1493Copy full SHA for e0d1493
1 file changed
src/ImageSharp/Image.FromStream.cs
@@ -72,7 +72,7 @@ public static Task<IImageFormat> DetectFormatAsync(
72
=> WithSeekableStreamAsync(
73
options,
74
stream,
75
- (s, _) => Task.FromResult(InternalDetectFormat(options.Configuration, s)),
+ async (s, ct) => await InternalDetectFormatAsync(options.Configuration, s, ct).ConfigureAwait(false),
76
cancellationToken);
77
78
/// <summary>
0 commit comments