Skip to content

Commit

Permalink
FusionCache.CompleteBackgroundFactory => Using async/await instead of…
Browse files Browse the repository at this point in the history
… ".Result" (#258)

* FusionCache.CompleteBackgroundFactory => Using "GetAwaiter().GetResult()" instead of ".Result"

---------

Co-authored-by: Jody Donetti <indastria@gmail.com>
  • Loading branch information
henriqueholtz and jodydonetti committed Aug 24, 2024
1 parent 6282a7a commit 4df69e8
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 @@ -401,7 +401,7 @@ private void CompleteBackgroundFactory<TValue>(string operationId, string key, F
options.ReThrowBackplaneExceptions = false;
// ADAPTIVE CACHING UPDATE
var lateEntry = FusionCacheMemoryEntry<TValue>.CreateFromOptions(antecedent.Result, options, false, ctx.LastModified, ctx.ETag, null);
var lateEntry = FusionCacheMemoryEntry<TValue>.CreateFromOptions(antecedent.GetAwaiter().GetResult(), options, false, ctx.LastModified, ctx.ETag, null);
var mca = GetCurrentMemoryAccessor(options);
if (mca is not null)
Expand Down

0 comments on commit 4df69e8

Please sign in to comment.