Skip to content

Commit 8c4a9da

Browse files
🐛 Use ConfigureAwait(false) for JSON decode
1 parent 42d135d commit 8c4a9da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lite3DotNet.SystemTextJson/Lite3JsonDecoder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public static async Task<int> DecodeAsync(
6666
buffer,
6767
pipeReader,
6868
minReadSize,
69-
arrayPool: null,
70-
cancellationToken);
69+
null,
70+
cancellationToken).ConfigureAwait(false);
7171

7272
return position;
7373
}
@@ -99,7 +99,7 @@ public static async Task<DecodeResult> DecodeAsync(
9999
pipeReader,
100100
minReadSize,
101101
arrayPool,
102-
cancellationToken);
102+
cancellationToken).ConfigureAwait(false);
103103

104104
return new DecodeResult(buffer, position, isRentedBuffer, arrayPool);
105105
}

0 commit comments

Comments
 (0)