Poll and cache rates in parallel

This commit is contained in:
nicolas.dorier
2018-08-23 00:24:33 +09:00
parent 87d384dba5
commit f12114f9aa
12 changed files with 301 additions and 131 deletions

View File

@@ -83,7 +83,7 @@ namespace BTCPayServer.Services
MultiValueDictionary<Type, TaskCompletionSource<bool>> _Subscriptions = new MultiValueDictionary<Type, TaskCompletionSource<bool>>();
public async Task WaitSettingsChanged<T>(CancellationToken cancellation)
{
var tcs = new TaskCompletionSource<bool>();
var tcs = new TaskCompletionSource<bool>(TaskCreationOptions.RunContinuationsAsynchronously);
using (cancellation.Register(() =>
{
try