Skip to content

Commit

Permalink
PollingTasks dictionary chnage to concurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
blazej.kuhajda committed Sep 20, 2023
1 parent d0955ad commit 0544569
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
Expand All @@ -23,7 +24,7 @@ private Polling(ITwinElement twinObject,

}

private static Dictionary<int, Task> PollingTasks { get; } = new();
private static ConcurrentDictionary<int, Task> PollingTasks { get; } = new();


internal static void Add(ITwinElement obj, int interval, object holder)
Expand Down

0 comments on commit 0544569

Please sign in to comment.