8 references to s_tasks
System.Net.NameResolution (8)
System\Net\Dns.cs (8)
939
lock (
s_tasks
)
942
s_tasks
.TryGetValue(key, out Task? prevTask);
949
Debug.Assert(!Monitor.IsEntered(
s_tasks
));
960
lock (
s_tasks
)
962
((ICollection<KeyValuePair<object, Task>>)
s_tasks
).Remove(new KeyValuePair<object, Task>(key!, task!));
973
lock (
s_tasks
)
975
((ICollection<KeyValuePair<object, Task>>)
s_tasks
).Remove(new KeyValuePair<object, Task>(key!, task));
983
s_tasks
[key] = task;