Skip to content

Commit 75c3f2b

Browse files
committed
Don't capture context for the ObjectFactory
1 parent 93ca7b7 commit 75c3f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AsyncMemoryCache/CreationBehaviors/CacheItemFactoryInvoker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void InvokeFactory<TKey, TValue>(CacheEntity<TKey, TValue> item, I
4141
await Task.Delay(timeToWait, timeProvider).ConfigureAwait(false);
4242
}
4343

44-
cacheItem.ObjectFactory.Start();
44+
await cacheItem.ObjectFactory.ConfigureAwait(false);
4545
},
4646
(item, creationTimeProvider.GetExpectedCreationTime() - timeProvider.GetUtcNow(), timeProvider),
4747
CancellationToken.None,

0 commit comments

Comments
 (0)