Skip to content

Commit

Permalink
perf: Using async/await instead of "GetAwaiter().GetResult()"
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueholtz committed Jun 15, 2024
1 parent baeccb1 commit 9418c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZiggyCreatures.FusionCache/FusionCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private void CompleteBackgroundFactory<TValue>(string operationId, string key, F
options.ReThrowBackplaneExceptions = false;
// ADAPTIVE CACHING UPDATE
var lateEntry = FusionCacheMemoryEntry<TValue>.CreateFromOptions(antecedent.GetAwaiter().GetResult(), options, false, ctx.LastModified, ctx.ETag, null);
var lateEntry = FusionCacheMemoryEntry<TValue>.CreateFromOptions(await antecedent, options, false, ctx.LastModified, ctx.ETag, null);
var mca = GetCurrentMemoryAccessor(options);
if (mca is not null)
Expand Down

0 comments on commit 9418c07

Please sign in to comment.