Added slow/deadlocked event handler detection

This commit is contained in:
RogueException
2017-03-31 00:35:20 -03:00
parent bf0be82d15
commit 13d488f43b
3 changed files with 121 additions and 36 deletions

View File

@@ -11,6 +11,7 @@ namespace Discord
private readonly object _subLock = new object();
internal ImmutableArray<T> _subscriptions;
public bool HasSubscribers => _subscriptions.Length != 0;
public IReadOnlyList<T> Subscriptions => _subscriptions;
public AsyncEvent()